@Only-api
@Post
@Get
@Delete
@Organization
Feature: Organization resource actions
Description: This feature checks the patient resource actions, get, post and delete made on FHIR specific Organization node. This resource is part of the Diagnosis.
File name: xaf.feature
Relative path: api/xaf.feature
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:32.906 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:33.566 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:33.566 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gaOmftvjx5FXxGO1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19283/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19283/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:33.566 [print] {
"resourceType": "Organization",
"id": "19283",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:36.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:33.566 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:33.568 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:33.568 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gaOmftvjx5FXxGO1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19283/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19283/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:33.568 [print] {
"resourceType": "Organization",
"id": "19283",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:36.672+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:33.568 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:34.189 [print] {
"resourceType": "Organization",
"id": "19283",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:36.672+02:00",
"source": "#gaOmftvjx5FXxGO1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:34.810 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:35.428 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:37.913+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:37.913+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:35.430 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:36.091 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:36.091 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QoWcZp0cocRiuwbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19284/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19284/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:36.091 [print] {
"resourceType": "Organization",
"id": "19284",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:39.198+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:36.091 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:36.093 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:36.093 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"QoWcZp0cocRiuwbJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19284/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19284/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:36.093 [print] {
"resourceType": "Organization",
"id": "19284",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:39.198+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:36.093 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:36.713 [print] {
"resourceType": "Organization",
"id": "19284",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:39.198+02:00",
"source": "#QoWcZp0cocRiuwbJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VITHAS VALENCIA CONSUELO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CALLOSA D''EN SARRIA 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:37.604 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:38.497 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:40.711+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:40.711+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:38.498 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:39.110 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:39.110 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GhrLFldll9xTdrAx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19285/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19285/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:39.110 [print] {
"resourceType": "Organization",
"id": "19285",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:42.212+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:39.110 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:39.111 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:39.111 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GhrLFldll9xTdrAx"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19285/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19285/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:39.112 [print] {
"resourceType": "Organization",
"id": "19285",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:42.212+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:39.112 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:39.769 [print] {
"resourceType": "Organization",
"id": "19285",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:42.212+02:00",
"source": "#GhrLFldll9xTdrAx",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:40.372 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:41.004 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:43.479+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:43.479+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:41.006 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:41.637 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:41.637 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ITfrMfur8IZu2B3r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19286/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19286/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:41.637 [print] {
"resourceType": "Organization",
"id": "19286",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:44.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:41.637 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:41.639 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:41.639 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ITfrMfur8IZu2B3r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19286/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19286/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:41.639 [print] {
"resourceType": "Organization",
"id": "19286",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:44.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:41.639 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:42.254 [print] {
"resourceType": "Organization",
"id": "19286",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:44.742+02:00",
"source": "#ITfrMfur8IZu2B3r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:42.867 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:43.486 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:45.972+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:45.972+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:43.487 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:44.139 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:44.139 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"apVWB7nGzzQhEvrX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19287/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19287/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:44.139 [print] {
"resourceType": "Organization",
"id": "19287",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:47.216+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:44.139 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:44.141 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:44.141 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"apVWB7nGzzQhEvrX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19287/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19287/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:44.142 [print] {
"resourceType": "Organization",
"id": "19287",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:47.216+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:44.142 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:44.743 [print] {
"resourceType": "Organization",
"id": "19287",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:47.216+02:00",
"source": "#apVWB7nGzzQhEvrX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:45.408 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:46.001 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:48.506+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:48.506+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:46.003 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:46.620 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:46.620 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hBSDNiQJoQzDUDVm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19288/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19288/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:46.620 [print] {
"resourceType": "Organization",
"id": "19288",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:49.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:46.620 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:46.622 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:46.622 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hBSDNiQJoQzDUDVm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19288/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19288/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:46.622 [print] {
"resourceType": "Organization",
"id": "19288",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:49.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:46.622 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:47.234 [print] {
"resourceType": "Organization",
"id": "19288",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:49.723+02:00",
"source": "#hBSDNiQJoQzDUDVm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:47.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:48.505 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:50.971+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:50.971+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:48.507 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:49.122 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:49.122 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Pp4zmZdmzxH9A5pV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19289/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19289/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:49.122 [print] {
"resourceType": "Organization",
"id": "19289",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:52.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:49.122 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:49.123 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:49.123 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Pp4zmZdmzxH9A5pV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19289/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19289/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:49.123 [print] {
"resourceType": "Organization",
"id": "19289",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:52.225+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:49.123 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:49.720 [print] {
"resourceType": "Organization",
"id": "19289",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:52.225+02:00",
"source": "#Pp4zmZdmzxH9A5pV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:50.345 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:50.967 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:53.449+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:53.449+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:50.968 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:51.603 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:51.603 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qgo4YzUMGzY9Fns2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19290/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19290/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:51.603 [print] {
"resourceType": "Organization",
"id": "19290",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:54.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:51.603 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:51.605 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:51.605 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qgo4YzUMGzY9Fns2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19290/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19290/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:51.605 [print] {
"resourceType": "Organization",
"id": "19290",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:54.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:51.605 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:52.228 [print] {
"resourceType": "Organization",
"id": "19290",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:54.698+02:00",
"source": "#qgo4YzUMGzY9Fns2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:53.835 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:54.465 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:56.939+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:56.939+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:54.467 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:55.090 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:55.090 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tnXbhBweP2RZHBdD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19291/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19291/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:55.090 [print] {
"resourceType": "Organization",
"id": "19291",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:58.196+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:55.090 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:55.092 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:55.092 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tnXbhBweP2RZHBdD"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19291/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:15:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19291/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:15:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:55.092 [print] {
"resourceType": "Organization",
"id": "19291",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:58.196+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:55.092 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:55.704 [print] {
"resourceType": "Organization",
"id": "19291",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:15:58.196+02:00",
"source": "#tnXbhBweP2RZHBdD",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SON VERI",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO ARBREDA S/N"
],
"city": "Llucmajor",
"state": "ILLES BALEARS",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:56.531 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:15:57.150 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:15:59.638+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:15:59.638+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:15:57.153 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:57.789 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:57.789 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xO1p9W4wOrlPhPkR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19292/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19292/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:57.789 [print] {
"resourceType": "Organization",
"id": "19292",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:00.894+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:57.789 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:15:57.790 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:15:57.790 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xO1p9W4wOrlPhPkR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19292/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19292/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:15:57.790 [print] {
"resourceType": "Organization",
"id": "19292",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:00.894+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:15:57.790 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:15:59.271 [print] {
"resourceType": "Organization",
"id": "19292",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:00.894+02:00",
"source": "#xO1p9W4wOrlPhPkR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:15:59.894 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:00.497 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:02.988+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:02.988+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:00.499 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:01.113 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:01.113 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RUkA2sBUrzq7b6jC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19293/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19293/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:01.113 [print] {
"resourceType": "Organization",
"id": "19293",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:04.215+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:01.113 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:01.115 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:01.115 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RUkA2sBUrzq7b6jC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19293/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19293/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:01.115 [print] {
"resourceType": "Organization",
"id": "19293",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:04.215+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:01.115 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:01.952 [print] {
"resourceType": "Organization",
"id": "19293",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:04.215+02:00",
"source": "#RUkA2sBUrzq7b6jC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:02.564 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:03.166 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:05.675+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:05.675+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:03.167 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:03.770 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:03.770 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zv0ddcvqcbJYfHrt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19294/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19294/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:03.770 [print] {
"resourceType": "Organization",
"id": "19294",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:06.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:03.770 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:03.771 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:03.771 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zv0ddcvqcbJYfHrt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19294/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19294/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:03.771 [print] {
"resourceType": "Organization",
"id": "19294",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:06.876+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:03.772 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:04.414 [print] {
"resourceType": "Organization",
"id": "19294",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:06.876+02:00",
"source": "#zv0ddcvqcbJYfHrt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE DENIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE BENIADLA S/N"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:05.080 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:05.740 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:08.185+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:08.185+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:05.742 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:06.749 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:06.749 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fcQWODT0L36YofIO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19295/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19295/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:06.749 [print] {
"resourceType": "Organization",
"id": "19295",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:09.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:06.749 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:06.751 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:06.751 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fcQWODT0L36YofIO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19295/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19295/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:06.751 [print] {
"resourceType": "Organization",
"id": "19295",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:09.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:06.751 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:07.377 [print] {
"resourceType": "Organization",
"id": "19295",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:09.840+02:00",
"source": "#fcQWODT0L36YofIO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NUESTRA SEÑORA DE GUADALUPE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LANGRERO S/N"
],
"city": "San Sebastián de la Gomera",
"state": "SANTA CRUZ DE TENERIFE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:08.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:08.661 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:11.111+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:11.111+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:08.663 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:09.307 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:09.307 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nUuoXhkMxzgVwvpY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19296/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19296/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:09.307 [print] {
"resourceType": "Organization",
"id": "19296",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:12.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:09.307 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:09.308 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:09.308 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nUuoXhkMxzgVwvpY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19296/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19296/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:09.309 [print] {
"resourceType": "Organization",
"id": "19296",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:12.406+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:09.309 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:09.920 [print] {
"resourceType": "Organization",
"id": "19296",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:12.406+02:00",
"source": "#nUuoXhkMxzgVwvpY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:10.559 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:11.188 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:13.660+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:13.660+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:11.189 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:11.804 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"392"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:11.804 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kPKLTaefAsgcl4wz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19297/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19297/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:11.804 [print] {
"resourceType": "Organization",
"id": "19297",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:14.908+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:11.804 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:11.805 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"392"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:11.805 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kPKLTaefAsgcl4wz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19297/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19297/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:11.805 [print] {
"resourceType": "Organization",
"id": "19297",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:14.908+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:11.805 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:12.442 [print] {
"resourceType": "Organization",
"id": "19297",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:14.908+02:00",
"source": "#kPKLTaefAsgcl4wz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO SAN JUAN DE ALICANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA C.NAL. 332, ALICANTE-VALENCIA S/N"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:13.280 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:14.100 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:16.380+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:16.380+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:14.102 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:14.705 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:14.705 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jmavxE6bb3YTph0i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19298/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19298/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:14.705 [print] {
"resourceType": "Organization",
"id": "19298",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:17.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:14.705 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:14.706 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:14.707 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jmavxE6bb3YTph0i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19298/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19298/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:14.707 [print] {
"resourceType": "Organization",
"id": "19298",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:17.811+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:14.707 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:15.313 [print] {
"resourceType": "Organization",
"id": "19298",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:17.811+02:00",
"source": "#jmavxE6bb3YTph0i",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:15.941 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 13ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 13ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:16.590 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:19.050+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:19.050+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:16.591 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:17.476 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:17.476 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Icx1JjlgZxnKMR9i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19299/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19299/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:17.476 [print] {
"resourceType": "Organization",
"id": "19299",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:20.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:17.476 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:17.478 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:17.478 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Icx1JjlgZxnKMR9i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19299/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19299/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:17.478 [print] {
"resourceType": "Organization",
"id": "19299",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:20.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:17.478 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:18.485 [print] {
"resourceType": "Organization",
"id": "19299",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:20.563+02:00",
"source": "#Icx1JjlgZxnKMR9i",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:19.087 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:19.673 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:22.194+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:22.194+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:19.674 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:20.312 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:20.312 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0Z09KV3er2arum3s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19300/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19300/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:20.312 [print] {
"resourceType": "Organization",
"id": "19300",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:23.386+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:20.312 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:20.314 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:20.314 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0Z09KV3er2arum3s"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19300/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19300/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:20.315 [print] {
"resourceType": "Organization",
"id": "19300",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:23.386+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:20.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:20.959 [print] {
"resourceType": "Organization",
"id": "19300",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:23.386+02:00",
"source": "#0Z09KV3er2arum3s",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:21.606 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:22.223 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:24.710+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:24.710+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:22.225 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:22.905 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:22.905 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cNWEoHK4hOHw9u63"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19301/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19301/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:22.905 [print] {
"resourceType": "Organization",
"id": "19301",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:25.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:22.905 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:22.906 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:22.907 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cNWEoHK4hOHw9u63"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19301/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19301/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:22.907 [print] {
"resourceType": "Organization",
"id": "19301",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:25.971+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:22.907 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:23.561 [print] {
"resourceType": "Organization",
"id": "19301",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:25.971+02:00",
"source": "#cNWEoHK4hOHw9u63",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "VITHAS HOSPITAL PERPETUO INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PLAZA DOCTOR GOMEZ ULLA 15"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:24.187 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:24.790 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:27.288+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:27.288+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:24.792 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:25.405 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:25.405 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WKuh7xLizYy1tRDX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19302/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19302/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:25.405 [print] {
"resourceType": "Organization",
"id": "19302",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:28.495+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:25.405 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:25.407 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:25.407 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WKuh7xLizYy1tRDX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19302/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19302/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:25.407 [print] {
"resourceType": "Organization",
"id": "19302",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:28.495+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:25.407 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:26.018 [print] {
"resourceType": "Organization",
"id": "19302",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:28.495+02:00",
"source": "#WKuh7xLizYy1tRDX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO VINALOPO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE TONICO SANSANO MORA 14"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:26.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:27.227 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:29.737+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:29.737+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:27.228 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:27.842 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:27.843 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Qk3SPr63EFQOTdvZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19303/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19303/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:27.843 [print] {
"resourceType": "Organization",
"id": "19303",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:30.948+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:27.843 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:27.844 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:27.844 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Qk3SPr63EFQOTdvZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19303/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19303/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:27.844 [print] {
"resourceType": "Organization",
"id": "19303",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:30.948+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:27.844 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:35.436 [print] {
"resourceType": "Organization",
"id": "19303",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:30.948+02:00",
"source": "#Qk3SPr63EFQOTdvZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:36.068 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:36.864 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:39.165+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:39.165+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:36.866 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:37.515 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:37.515 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ca3p5fXG1ecQMxCL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19304/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19304/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:37.515 [print] {
"resourceType": "Organization",
"id": "19304",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:40.598+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:37.515 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:37.517 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:37.517 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Ca3p5fXG1ecQMxCL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19304/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19304/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:37.517 [print] {
"resourceType": "Organization",
"id": "19304",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:40.598+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:37.517 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:38.123 [print] {
"resourceType": "Organization",
"id": "19304",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:40.598+02:00",
"source": "#Ca3p5fXG1ecQMxCL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:38.755 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:39.366 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:41.856+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:41.856+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:39.367 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:39.978 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:39.978 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E1FOLWdUuvIavfRP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19305/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19305/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:39.978 [print] {
"resourceType": "Organization",
"id": "19305",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:43.080+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:39.978 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:39.980 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:39.980 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E1FOLWdUuvIavfRP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19305/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19305/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:39.980 [print] {
"resourceType": "Organization",
"id": "19305",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:43.080+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:39.980 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:40.607 [print] {
"resourceType": "Organization",
"id": "19305",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:43.080+02:00",
"source": "#E1FOLWdUuvIavfRP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARE DE DEU DE LA MERCE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PASEO UNIVERSAL 34"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:41.263 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 28ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 28ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:41.876 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:44.364+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:44.364+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:41.878 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:43.505 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:43.505 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kxmLnRarUNXEbm4o"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19306/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19306/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:43.505 [print] {
"resourceType": "Organization",
"id": "19306",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:46.611+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:43.505 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:43.507 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:43.507 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kxmLnRarUNXEbm4o"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19306/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19306/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:43.507 [print] {
"resourceType": "Organization",
"id": "19306",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:46.611+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:43.507 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:44.142 [print] {
"resourceType": "Organization",
"id": "19306",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:46.611+02:00",
"source": "#kxmLnRarUNXEbm4o",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:44.749 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:45.361 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:47.860+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:47.860+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:45.363 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:45.989 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:45.989 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YYr7ECb95nHfzikZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19307/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19307/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:45.989 [print] {
"resourceType": "Organization",
"id": "19307",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:49.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:45.989 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:45.990 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:45.990 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YYr7ECb95nHfzikZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19307/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19307/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:45.990 [print] {
"resourceType": "Organization",
"id": "19307",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:49.088+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:45.990 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:46.589 [print] {
"resourceType": "Organization",
"id": "19307",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:49.088+02:00",
"source": "#YYr7ECb95nHfzikZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA VISTAHERMOSA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 103"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:47.212 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:47.817 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:50.319+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:50.319+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:47.819 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:48.431 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:48.431 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UaE6ZuRjHV8fkYYQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19308/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19308/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:48.431 [print] {
"resourceType": "Organization",
"id": "19308",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:51.538+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:48.431 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:48.433 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:48.433 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UaE6ZuRjHV8fkYYQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19308/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19308/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:48.433 [print] {
"resourceType": "Organization",
"id": "19308",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:51.538+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:48.433 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:49.047 [print] {
"resourceType": "Organization",
"id": "19308",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:51.538+02:00",
"source": "#UaE6ZuRjHV8fkYYQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:49.653 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:50.271 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:52.757+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:52.757+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:50.273 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:50.882 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:50.882 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BGhYIPCbrtM2YMKE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19309/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19309/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:50.882 [print] {
"resourceType": "Organization",
"id": "19309",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:53.977+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:50.882 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:50.883 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:50.883 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BGhYIPCbrtM2YMKE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19309/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19309/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:50.883 [print] {
"resourceType": "Organization",
"id": "19309",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:53.977+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:50.883 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:51.486 [print] {
"resourceType": "Organization",
"id": "19309",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:53.977+02:00",
"source": "#BGhYIPCbrtM2YMKE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:52.086 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:53.745 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:55.197+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:55.197+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:53.747 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:54.373 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:54.373 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z8nF4r6y1jwFN0DR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19310/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19310/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:54.373 [print] {
"resourceType": "Organization",
"id": "19310",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:57.482+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:54.373 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:54.375 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:54.375 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z8nF4r6y1jwFN0DR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19310/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:16:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19310/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:16:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:54.375 [print] {
"resourceType": "Organization",
"id": "19310",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:57.482+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:54.375 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:54.982 [print] {
"resourceType": "Organization",
"id": "19310",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:16:57.482+02:00",
"source": "#Z8nF4r6y1jwFN0DR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:55.616 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:56.308 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:16:58.707+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:16:58.707+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:56.310 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:57.349 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:57.349 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rv793OiHkbYzZrmM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19311/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19311/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:57.349 [print] {
"resourceType": "Organization",
"id": "19311",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:00.457+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:57.349 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:57.351 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:57.351 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Rv793OiHkbYzZrmM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19311/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19311/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:57.351 [print] {
"resourceType": "Organization",
"id": "19311",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:00.457+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:57.351 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:16:57.938 [print] {
"resourceType": "Organization",
"id": "19311",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:00.457+02:00",
"source": "#Rv793OiHkbYzZrmM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:16:58.535 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:16:59.220 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:01.647+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:01.647+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:16:59.222 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:59.850 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:59.850 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nvkNQ67eRvzyhocE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19312/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19312/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:59.850 [print] {
"resourceType": "Organization",
"id": "19312",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:02.953+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:59.850 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:16:59.852 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:16:59.852 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nvkNQ67eRvzyhocE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19312/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19312/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:16:59.852 [print] {
"resourceType": "Organization",
"id": "19312",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:02.953+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:16:59.852 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:00.453 [print] {
"resourceType": "Organization",
"id": "19312",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:02.953+02:00",
"source": "#nvkNQ67eRvzyhocE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:01.068 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:01.681 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:04.173+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:04.173+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:01.683 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:02.312 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:02.312 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3KxO2GkOwKPa7sXj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19313/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19313/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:02.312 [print] {
"resourceType": "Organization",
"id": "19313",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:05.420+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:02.312 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:02.313 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:02.313 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3KxO2GkOwKPa7sXj"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19313/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19313/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:02.313 [print] {
"resourceType": "Organization",
"id": "19313",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:05.420+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:02.313 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:02.910 [print] {
"resourceType": "Organization",
"id": "19313",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:05.420+02:00",
"source": "#3KxO2GkOwKPa7sXj",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:03.529 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:04.139 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:06.631+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:06.631+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:04.140 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:04.740 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:04.740 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cMEdlUyJEWflxpKm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19314/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19314/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:04.740 [print] {
"resourceType": "Organization",
"id": "19314",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:07.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:04.740 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:04.741 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:04.741 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cMEdlUyJEWflxpKm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19314/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19314/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:04.741 [print] {
"resourceType": "Organization",
"id": "19314",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:07.846+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:04.741 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:05.340 [print] {
"resourceType": "Organization",
"id": "19314",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:07.846+02:00",
"source": "#cMEdlUyJEWflxpKm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICA BENIDORM",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALFONSO PUCHADES 8"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:05.983 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:06.593 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:09.088+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:09.088+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:06.595 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:07.246 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:07.246 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vyN8kQ2u00lpLObr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19315/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19315/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:07.246 [print] {
"resourceType": "Organization",
"id": "19315",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:10.342+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:07.246 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:07.248 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:07.248 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vyN8kQ2u00lpLObr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19315/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19315/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:07.248 [print] {
"resourceType": "Organization",
"id": "19315",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:10.342+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:07.248 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:07.855 [print] {
"resourceType": "Organization",
"id": "19315",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:10.342+02:00",
"source": "#vyN8kQ2u00lpLObr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:08.489 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:09.096 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:11.590+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:11.590+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:09.098 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:09.720 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:09.720 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3WpVO42lZleJ6jNS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19316/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19316/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:09.720 [print] {
"resourceType": "Organization",
"id": "19316",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:12.822+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:09.720 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:09.722 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:09.722 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3WpVO42lZleJ6jNS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19316/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19316/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:09.722 [print] {
"resourceType": "Organization",
"id": "19316",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:12.822+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:09.722 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:10.329 [print] {
"resourceType": "Organization",
"id": "19316",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:12.822+02:00",
"source": "#3WpVO42lZleJ6jNS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:10.960 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:11.580 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:14.055+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:14.055+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:11.582 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:12.208 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:12.208 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vl7KRzRALltKFLWi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19317/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19317/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:12.208 [print] {
"resourceType": "Organization",
"id": "19317",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:15.309+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:12.208 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:12.209 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"317"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:12.209 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vl7KRzRALltKFLWi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19317/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19317/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:12.209 [print] {
"resourceType": "Organization",
"id": "19317",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:15.309+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:12.209 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:12.795 [print] {
"resourceType": "Organization",
"id": "19317",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:15.309+02:00",
"source": "#vl7KRzRALltKFLWi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "IMED VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE FERROCARRIL 57"
],
"city": "Burjassot",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:13.406 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:14.061 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:16.515+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:16.515+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:14.064 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:14.680 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:14.680 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JC9Er4df6CWjz0MG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19318/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19318/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:14.680 [print] {
"resourceType": "Organization",
"id": "19318",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:17.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:14.680 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:14.681 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:14.681 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JC9Er4df6CWjz0MG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19318/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19318/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:14.681 [print] {
"resourceType": "Organization",
"id": "19318",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:17.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:14.682 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:15.312 [print] {
"resourceType": "Organization",
"id": "19318",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:17.783+02:00",
"source": "#JC9Er4df6CWjz0MG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:15.920 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:17.536 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:19.032+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:19.032+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:17.538 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:18.171 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"324"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:18.171 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LcXkUvI7Rx92Tvxw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19319/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19319/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:18.171 [print] {
"resourceType": "Organization",
"id": "19319",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:21.271+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:18.171 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:18.173 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"324"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:18.173 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LcXkUvI7Rx92Tvxw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19319/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19319/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:18.173 [print] {
"resourceType": "Organization",
"id": "19319",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:21.271+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:18.173 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:18.797 [print] {
"resourceType": "Organization",
"id": "19319",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:21.271+02:00",
"source": "#LcXkUvI7Rx92Tvxw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARE JOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SAN LAZARO S/N"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:19.433 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:20.044 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:22.541+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:22.541+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:20.046 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:20.672 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"338"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:20.672 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SL1WlPgo6jsS9x8B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19320/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19320/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:20.672 [print] {
"resourceType": "Organization",
"id": "19320",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:23.764+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:20.672 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:20.673 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"338"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:20.673 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SL1WlPgo6jsS9x8B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19320/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19320/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:20.673 [print] {
"resourceType": "Organization",
"id": "19320",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:23.764+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:20.673 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:21.371 [print] {
"resourceType": "Organization",
"id": "19320",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:23.764+02:00",
"source": "#SL1WlPgo6jsS9x8B",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 14"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:22.017 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:22.640 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:25.119+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:25.119+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:22.642 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:23.478 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:23.478 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vs6u3UJ1wcGXU2jt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19321/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19321/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:23.478 [print] {
"resourceType": "Organization",
"id": "19321",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:26.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:23.478 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:23.479 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:23.479 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vs6u3UJ1wcGXU2jt"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19321/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19321/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:23.479 [print] {
"resourceType": "Organization",
"id": "19321",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:26.573+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:23.479 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:24.109 [print] {
"resourceType": "Organization",
"id": "19321",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:26.573+02:00",
"source": "#vs6u3UJ1wcGXU2jt",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA RIBERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CORBERA 1"
],
"city": "Alzira",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:24.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:25.340 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:27.819+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:27.819+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:25.342 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:25.954 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"326"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:25.954 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JjismbrubTzcqepK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19322/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19322/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:25.954 [print] {
"resourceType": "Organization",
"id": "19322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:29.051+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:25.954 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:25.956 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"326"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:25.956 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JjismbrubTzcqepK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19322/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19322/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:25.956 [print] {
"resourceType": "Organization",
"id": "19322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:29.051+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:25.956 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:26.565 [print] {
"resourceType": "Organization",
"id": "19322",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:29.051+02:00",
"source": "#JjismbrubTzcqepK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL OBISPO POLANCO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA RUIZ JARABO S/N"
],
"city": "Teruel",
"state": "TERUEL",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:27.185 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:27.798 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:30.290+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:30.290+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:27.799 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:29.463 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:29.463 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q49PnvVYCGXPyUwg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19323/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19323/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:29.463 [print] {
"resourceType": "Organization",
"id": "19323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:32.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:29.463 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:29.465 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:29.465 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"q49PnvVYCGXPyUwg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19323/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19323/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:29.465 [print] {
"resourceType": "Organization",
"id": "19323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:32.563+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:29.465 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:30.071 [print] {
"resourceType": "Organization",
"id": "19323",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:32.563+02:00",
"source": "#q49PnvVYCGXPyUwg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:30.696 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:31.515 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:33.800+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:33.800+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:31.516 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:32.125 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:32.125 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0FcBufgHdIrm6GmO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19324/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19324/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:32.125 [print] {
"resourceType": "Organization",
"id": "19324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:35.224+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:32.125 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:32.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:32.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0FcBufgHdIrm6GmO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19324/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19324/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:32.127 [print] {
"resourceType": "Organization",
"id": "19324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:35.224+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:32.127 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:32.743 [print] {
"resourceType": "Organization",
"id": "19324",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:35.224+02:00",
"source": "#0FcBufgHdIrm6GmO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:33.385 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:33.987 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:36.486+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:36.486+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:33.989 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:34.614 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:34.614 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FcNg2MUMlKkLwlcV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19325/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19325/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:34.614 [print] {
"resourceType": "Organization",
"id": "19325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:37.720+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:34.614 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:34.617 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:34.617 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FcNg2MUMlKkLwlcV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19325/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19325/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:34.617 [print] {
"resourceType": "Organization",
"id": "19325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:37.720+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:34.617 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:35.223 [print] {
"resourceType": "Organization",
"id": "19325",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:37.720+02:00",
"source": "#FcNg2MUMlKkLwlcV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:35.863 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:36.469 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:38.968+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:38.968+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:36.470 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:37.127 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:37.127 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHulvr7pys2Ujap2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19326/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19326/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:37.128 [print] {
"resourceType": "Organization",
"id": "19326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:40.197+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:37.128 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:37.129 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:37.129 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lHulvr7pys2Ujap2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19326/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19326/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:37.129 [print] {
"resourceType": "Organization",
"id": "19326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:40.197+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:37.129 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:37.738 [print] {
"resourceType": "Organization",
"id": "19326",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:40.197+02:00",
"source": "#lHulvr7pys2Ujap2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:38.377 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:38.996 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:41.479+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:41.479+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:38.998 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:39.627 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:39.627 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXLrRUZiQivPMTW3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19327/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19327/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:39.627 [print] {
"resourceType": "Organization",
"id": "19327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:42.727+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:39.627 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:39.629 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:39.629 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXLrRUZiQivPMTW3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19327/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19327/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:39.629 [print] {
"resourceType": "Organization",
"id": "19327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:42.727+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:39.629 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:40.238 [print] {
"resourceType": "Organization",
"id": "19327",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:42.727+02:00",
"source": "#OXLrRUZiQivPMTW3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:40.871 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:41.477 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:43.971+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:43.971+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:41.478 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:42.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:42.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tkDFT8qKylujvQ5a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19328/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19328/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:42.147 [print] {
"resourceType": "Organization",
"id": "19328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:45.235+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:42.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:42.149 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:42.149 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tkDFT8qKylujvQ5a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19328/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19328/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:42.149 [print] {
"resourceType": "Organization",
"id": "19328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:45.235+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:42.149 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:42.745 [print] {
"resourceType": "Organization",
"id": "19328",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:45.235+02:00",
"source": "#tkDFT8qKylujvQ5a",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:43.385 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:44.009 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:46.485+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:46.485+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:44.010 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:44.633 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:44.633 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V3vtOD9g0AyCXI6e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19329/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19329/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:44.633 [print] {
"resourceType": "Organization",
"id": "19329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:47.735+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:44.633 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:44.635 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:44.635 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V3vtOD9g0AyCXI6e"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19329/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19329/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:44.635 [print] {
"resourceType": "Organization",
"id": "19329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:47.735+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:44.635 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:45.256 [print] {
"resourceType": "Organization",
"id": "19329",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:47.735+02:00",
"source": "#V3vtOD9g0AyCXI6e",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SAN CARLOS DE DENIA GRUPO HLA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA MADRIGUERES SUD 8"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:45.861 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:46.478 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:48.970+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:48.970+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:46.479 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:47.117 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:47.117 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IFb5UuZDDMlYQB34"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19330/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19330/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:47.117 [print] {
"resourceType": "Organization",
"id": "19330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:50.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:47.117 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:47.118 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:47.118 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IFb5UuZDDMlYQB34"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19330/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19330/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:47.118 [print] {
"resourceType": "Organization",
"id": "19330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:50.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:47.118 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:47.709 [print] {
"resourceType": "Organization",
"id": "19330",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:50.211+02:00",
"source": "#IFb5UuZDDMlYQB34",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:48.441 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:49.060 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:51.510+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:51.510+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:49.061 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:49.867 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:49.867 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xjgygske7gugbDPU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19331/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19331/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:49.867 [print] {
"resourceType": "Organization",
"id": "19331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:52.973+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:49.867 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:49.869 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:49.869 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xjgygske7gugbDPU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19331/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19331/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:49.869 [print] {
"resourceType": "Organization",
"id": "19331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:52.973+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:49.869 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:50.456 [print] {
"resourceType": "Organization",
"id": "19331",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:52.973+02:00",
"source": "#xjgygske7gugbDPU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:51.077 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:51.691 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:54.185+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:54.185+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:51.692 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:52.323 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"319"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:52.323 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m8kZLCYhEN5Rpqpm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19332/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19332/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:52.323 [print] {
"resourceType": "Organization",
"id": "19332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:55.412+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:52.323 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:52.325 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"319"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:52.325 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m8kZLCYhEN5Rpqpm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19332/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19332/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:52.325 [print] {
"resourceType": "Organization",
"id": "19332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:55.412+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:52.325 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:53.130 [print] {
"resourceType": "Organization",
"id": "19332",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:55.412+02:00",
"source": "#m8kZLCYhEN5Rpqpm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA PEDRERA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA PLANA EST 4"
],
"city": "Dénia",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:53.746 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:54.378 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:56.856+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:56.856+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:54.379 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:54.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:54.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wWbfFLtl9ybGNLHU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19333/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19333/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:54.994 [print] {
"resourceType": "Organization",
"id": "19333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:58.099+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:54.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:54.996 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:54.996 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wWbfFLtl9ybGNLHU"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19333/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:17:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19333/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:17:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:54.996 [print] {
"resourceType": "Organization",
"id": "19333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:58.099+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:54.996 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:55.599 [print] {
"resourceType": "Organization",
"id": "19333",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:17:58.099+02:00",
"source": "#wWbfFLtl9ybGNLHU",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:56.262 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:56.908 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:17:59.361+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:17:59.361+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:56.909 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:57.570 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"321"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:57.570 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ArrjM3PG0gb3bmRm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19334/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19334/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:57.570 [print] {
"resourceType": "Organization",
"id": "19334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:00.673+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:57.570 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:17:57.572 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"321"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:17:57.572 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ArrjM3PG0gb3bmRm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19334/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19334/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:00 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:17:57.572 [print] {
"resourceType": "Organization",
"id": "19334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:00.673+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:17:57.572 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:17:58.176 [print] {
"resourceType": "Organization",
"id": "19334",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:00.673+02:00",
"source": "#ArrjM3PG0gb3bmRm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA GALATEA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PALAFOLLS 15-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:17:58.818 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:17:59.518 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:01.913+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:01.913+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:17:59.519 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:00.121 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:00.121 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lWYHNxNiJZCLYUuY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19335/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19335/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:00.121 [print] {
"resourceType": "Organization",
"id": "19335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:03.229+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:00.121 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:00.123 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:00.123 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lWYHNxNiJZCLYUuY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19335/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:03 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19335/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:03 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:00.123 [print] {
"resourceType": "Organization",
"id": "19335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:03.229+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:00.123 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:00.728 [print] {
"resourceType": "Organization",
"id": "19335",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:03.229+02:00",
"source": "#lWYHNxNiJZCLYUuY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:01.365 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:02.010 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:04.459+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:04.459+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:02.011 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:02.645 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:02.645 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rSRBgB9FKAlLmgCK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19336/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19336/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:02.645 [print] {
"resourceType": "Organization",
"id": "19336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:05.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:02.645 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:02.647 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:02.647 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rSRBgB9FKAlLmgCK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19336/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:05 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19336/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:05 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:02.647 [print] {
"resourceType": "Organization",
"id": "19336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:05.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:02.647 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:03.254 [print] {
"resourceType": "Organization",
"id": "19336",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:05.733+02:00",
"source": "#rSRBgB9FKAlLmgCK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:03.913 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:04.549 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:07.020+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:07.020+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:04.551 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:05.155 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:05.156 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JA976GhcV76IsdGb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19337/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19337/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:05.156 [print] {
"resourceType": "Organization",
"id": "19337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:08.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:05.156 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:05.157 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:05.157 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"JA976GhcV76IsdGb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19337/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:08 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19337/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:08 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:05.157 [print] {
"resourceType": "Organization",
"id": "19337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:08.251+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:05.157 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:05.759 [print] {
"resourceType": "Organization",
"id": "19337",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:08.251+02:00",
"source": "#JA976GhcV76IsdGb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD SAN JOSE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE CARTAGENA 111"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:06.403 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:07.003 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:09.512+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:09.512+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:07.004 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:07.651 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:07.651 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aNjDxnk6iUSqVX1G"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19338/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19338/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:07.651 [print] {
"resourceType": "Organization",
"id": "19338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:10.731+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:07.651 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:07.653 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:07.653 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aNjDxnk6iUSqVX1G"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19338/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19338/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:07.653 [print] {
"resourceType": "Organization",
"id": "19338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:10.731+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:07.653 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:08.289 [print] {
"resourceType": "Organization",
"id": "19338",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:10.731+02:00",
"source": "#aNjDxnk6iUSqVX1G",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE LA PLANA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA VILA-REAL A BORRIANA KM 0,5"
],
"city": "Vila-real",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:09.278 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:09.889 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:12.386+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:12.386+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:09.890 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:10.509 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:10.509 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7Y9NKVLQPiduwvxn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19339/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19339/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:10.509 [print] {
"resourceType": "Organization",
"id": "19339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:13.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:10.509 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:10.511 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:10.511 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7Y9NKVLQPiduwvxn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19339/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19339/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:10.511 [print] {
"resourceType": "Organization",
"id": "19339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:13.617+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:10.511 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:11.128 [print] {
"resourceType": "Organization",
"id": "19339",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:13.617+02:00",
"source": "#7Y9NKVLQPiduwvxn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:11.776 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:12.392 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:14.877+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:14.877+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:12.393 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:13.024 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:13.024 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FhPhsiLdeAHHd66C"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19340/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19340/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:13.024 [print] {
"resourceType": "Organization",
"id": "19340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:16.120+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:13.024 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:13.026 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:13.026 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FhPhsiLdeAHHd66C"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19340/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19340/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:13.026 [print] {
"resourceType": "Organization",
"id": "19340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:16.120+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:13.026 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:13.644 [print] {
"resourceType": "Organization",
"id": "19340",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:16.120+02:00",
"source": "#FhPhsiLdeAHHd66C",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELDA-VIRGEN DE LA SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA SAX S/N"
],
"city": "Elda",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:14.296 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:14.895 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:17.391+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:17.391+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:14.897 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:15.493 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:15.494 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UIRnaEps12kVDHlQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19341/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19341/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:15.494 [print] {
"resourceType": "Organization",
"id": "19341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:18.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:15.494 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:15.495 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:15.495 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UIRnaEps12kVDHlQ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19341/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19341/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:15.495 [print] {
"resourceType": "Organization",
"id": "19341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:18.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:15.495 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:16.117 [print] {
"resourceType": "Organization",
"id": "19341",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:18.603+02:00",
"source": "#UIRnaEps12kVDHlQ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:16.732 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:17.349 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:19.841+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:19.841+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:17.351 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:17.952 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:17.952 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hlr2CG1tX5vMFr5x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19342/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19342/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:17.952 [print] {
"resourceType": "Organization",
"id": "19342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:21.061+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:17.952 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:17.954 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:17.954 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"hlr2CG1tX5vMFr5x"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19342/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19342/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:17.954 [print] {
"resourceType": "Organization",
"id": "19342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:21.061+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:17.954 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:18.552 [print] {
"resourceType": "Organization",
"id": "19342",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:21.061+02:00",
"source": "#hlr2CG1tX5vMFr5x",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:19.202 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:19.808 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:22.298+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:22.298+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:19.809 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:20.409 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:20.409 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0GqZ73fx7kJkSiDu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19343/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19343/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:20.409 [print] {
"resourceType": "Organization",
"id": "19343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:23.516+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:20.409 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:20.411 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:20.411 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0GqZ73fx7kJkSiDu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19343/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19343/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:20.411 [print] {
"resourceType": "Organization",
"id": "19343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:23.516+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:20.411 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:21.023 [print] {
"resourceType": "Organization",
"id": "19343",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:23.516+02:00",
"source": "#0GqZ73fx7kJkSiDu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:21.640 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:22.270 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:24.744+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:24.744+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:22.271 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:22.923 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:22.924 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Wq4QomXAFs7YQjoR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19344/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19344/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:22.924 [print] {
"resourceType": "Organization",
"id": "19344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:26.000+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:22.924 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:22.925 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:22.925 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Wq4QomXAFs7YQjoR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19344/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19344/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:22.925 [print] {
"resourceType": "Organization",
"id": "19344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:26.000+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:22.925 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:23.513 [print] {
"resourceType": "Organization",
"id": "19344",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:26.000+02:00",
"source": "#Wq4QomXAFs7YQjoR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL QUIRONSALUD TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARTIDA DE LA LOMA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:24.145 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 8ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 8ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:24.743 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:27.246+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:27.246+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:24.744 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:25.361 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"397"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:25.361 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g4hBRBQgtBzvpUTM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19345/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19345/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:25.361 [print] {
"resourceType": "Organization",
"id": "19345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:28.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:25.361 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:25.363 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"397"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:25.363 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"g4hBRBQgtBzvpUTM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19345/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:28 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19345/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:25.363 [print] {
"resourceType": "Organization",
"id": "19345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:28.461+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:25.363 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:25.991 [print] {
"resourceType": "Organization",
"id": "19345",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:28.461+02:00",
"source": "#g4hBRBQgtBzvpUTM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DE TORREVIEJA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CARRETERA CV 95 S. MIGUEL SALINAS-TORREVIEJA PDA. LA CEÑUELA S/N"
],
"city": "Torrevieja",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:26.601 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:27.227 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:29.713+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:29.713+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:27.229 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:27.835 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:27.835 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FkWSAssI7KM4k9ua"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19346/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19346/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:27.836 [print] {
"resourceType": "Organization",
"id": "19346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:30.941+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:27.836 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:27.837 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:27.837 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FkWSAssI7KM4k9ua"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19346/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19346/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:27.837 [print] {
"resourceType": "Organization",
"id": "19346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:30.941+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:27.837 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:28.454 [print] {
"resourceType": "Organization",
"id": "19346",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:30.941+02:00",
"source": "#FkWSAssI7KM4k9ua",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PARQUE MARAZUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE EXTREMADURA 5"
],
"city": "Talavera de la Reina",
"state": "TOLEDO",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:29.097 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:29.716 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:32.194+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:32.194+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:29.717 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:30.326 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:30.326 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gxpzLOjP4tmqheYf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19347/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19347/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:30.326 [print] {
"resourceType": "Organization",
"id": "19347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:33.433+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:30.326 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:30.328 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:30.328 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"gxpzLOjP4tmqheYf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19347/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19347/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:30.328 [print] {
"resourceType": "Organization",
"id": "19347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:33.433+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:30.328 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:30.979 [print] {
"resourceType": "Organization",
"id": "19347",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:33.433+02:00",
"source": "#gxpzLOjP4tmqheYf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:32.826 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:33.567 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:35.931+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:35.931+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:33.568 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:34.202 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:34.202 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s8RxDtMJHUZibpQz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19348/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19348/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:34.202 [print] {
"resourceType": "Organization",
"id": "19348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:37.308+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:34.202 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:34.204 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"336"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:34.204 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s8RxDtMJHUZibpQz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19348/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19348/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:34.205 [print] {
"resourceType": "Organization",
"id": "19348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:37.308+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:34.205 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:36.062 [print] {
"resourceType": "Organization",
"id": "19348",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:37.308+02:00",
"source": "#s8RxDtMJHUZibpQz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL 9 DE OCTUBRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VALLE DE LA BALLESTERA 59"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:36.686 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:37.319 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:39.795+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:39.795+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:37.320 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:37.922 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:37.922 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Kgrs0wMMPY1pWFDS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19349/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19349/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:37.922 [print] {
"resourceType": "Organization",
"id": "19349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:41.025+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:37.922 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:37.924 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:37.924 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Kgrs0wMMPY1pWFDS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19349/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19349/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:37.924 [print] {
"resourceType": "Organization",
"id": "19349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:41.025+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:37.924 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:38.543 [print] {
"resourceType": "Organization",
"id": "19349",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:41.025+02:00",
"source": "#Kgrs0wMMPY1pWFDS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:39.188 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:39.822 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:42.287+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:42.287+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:39.823 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:40.422 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:40.422 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9wKEkRyoKPBUgMew"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19350/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19350/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:40.422 [print] {
"resourceType": "Organization",
"id": "19350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:43.528+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:40.422 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:40.424 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:40.424 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9wKEkRyoKPBUgMew"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19350/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19350/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:40.424 [print] {
"resourceType": "Organization",
"id": "19350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:43.528+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:40.424 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:41.038 [print] {
"resourceType": "Organization",
"id": "19350",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:43.528+02:00",
"source": "#9wKEkRyoKPBUgMew",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:41.762 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:42.370 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:44.872+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:44.872+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:42.371 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:42.971 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"371"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:42.972 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3j0MYsqxOi1DqXKH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19351/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19351/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:42.972 [print] {
"resourceType": "Organization",
"id": "19351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:46.081+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:42.972 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:42.973 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"371"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:42.973 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3j0MYsqxOi1DqXKH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19351/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19351/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:42.973 [print] {
"resourceType": "Organization",
"id": "19351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:46.081+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:42.973 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:43.778 [print] {
"resourceType": "Organization",
"id": "19351",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:46.081+02:00",
"source": "#3j0MYsqxOi1DqXKH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL INTERMUTUAL DE LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CTRA VALENCIA-ADEMUZ KM 11,700"
],
"city": "San Antonio de Benagéber",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:44.393 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:44.995 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:47.504+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:47.504+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:44.996 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:45.653 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:45.653 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F8p0bDOLRQwebvRi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19352/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19352/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:45.653 [print] {
"resourceType": "Organization",
"id": "19352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:48.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:45.653 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:45.654 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:45.655 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"F8p0bDOLRQwebvRi"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19352/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19352/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:45.655 [print] {
"resourceType": "Organization",
"id": "19352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:48.733+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:45.655 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:46.266 [print] {
"resourceType": "Organization",
"id": "19352",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:48.733+02:00",
"source": "#F8p0bDOLRQwebvRi",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:46.976 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:47.596 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:50.080+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:50.080+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:47.599 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:48.222 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:48.222 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MG9SEnWg6rxk2Sa8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19353/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19353/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:48.222 [print] {
"resourceType": "Organization",
"id": "19353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:51.327+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:48.222 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:48.224 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:48.224 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MG9SEnWg6rxk2Sa8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19353/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19353/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:50 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:48.224 [print] {
"resourceType": "Organization",
"id": "19353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:51.327+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:48.224 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:48.823 [print] {
"resourceType": "Organization",
"id": "19353",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:51.327+02:00",
"source": "#MG9SEnWg6rxk2Sa8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:49.671 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:50.273 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:52.774+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:52.774+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:50.274 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:51.093 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:51.093 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5Ytd9maBCjoK78UW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19354/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19354/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:51.093 [print] {
"resourceType": "Organization",
"id": "19354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:53.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:51.093 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:51.095 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"342"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:51.095 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5Ytd9maBCjoK78UW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19354/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19354/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:51.095 [print] {
"resourceType": "Organization",
"id": "19354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:53.987+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:51.095 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:51.705 [print] {
"resourceType": "Organization",
"id": "19354",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:53.987+02:00",
"source": "#5Ytd9maBCjoK78UW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL COMARCAL DE VINAROS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GIL DE ATROCILLO S/N"
],
"city": "Vinaròs",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:52.536 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:53.143 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:55.609+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:55.609+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:53.144 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:53.751 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:53.751 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RosLCvrk4sDG0yn6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19355/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19355/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:53.751 [print] {
"resourceType": "Organization",
"id": "19355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:56.861+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:53.751 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:53.752 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:53.752 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RosLCvrk4sDG0yn6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19355/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19355/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:53.752 [print] {
"resourceType": "Organization",
"id": "19355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:56.861+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:53.752 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:54.367 [print] {
"resourceType": "Organization",
"id": "19355",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:56.861+02:00",
"source": "#RosLCvrk4sDG0yn6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:54.988 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:55.971 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:18:58.099+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:18:58.099+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:55.972 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:56.595 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:56.595 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x4mY1oVSSf9ukDdz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19356/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19356/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:56.595 [print] {
"resourceType": "Organization",
"id": "19356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:59.685+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:56.595 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:56.596 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:56.597 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"x4mY1oVSSf9ukDdz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19356/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:18:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19356/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:18:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:56.597 [print] {
"resourceType": "Organization",
"id": "19356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:59.685+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:56.597 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:57.216 [print] {
"resourceType": "Organization",
"id": "19356",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:18:59.685+02:00",
"source": "#x4mY1oVSSf9ukDdz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LLUIS ALCANYIS DE XATIVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA XATIVA-SILLA KM. 2"
],
"city": "Xàtiva",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:18:57.847 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:18:58.472 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:00.952+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:00.952+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:18:58.474 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:59.090 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"378"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:59.090 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KX1XUC8jxu1tCJiw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19357/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19357/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:59.090 [print] {
"resourceType": "Organization",
"id": "19357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:02.193+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:59.090 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:18:59.092 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"378"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:18:59.092 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KX1XUC8jxu1tCJiw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19357/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19357/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:18:59.092 [print] {
"resourceType": "Organization",
"id": "19357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:02.193+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:18:59.092 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:18:59.704 [print] {
"resourceType": "Organization",
"id": "19357",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:02.193+02:00",
"source": "#KX1XUC8jxu1tCJiw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PENITENCIARIO DE FONTCALENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"COMPLEJO CENTRO PENITENC. FONTCALEN 1"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:00.337 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:00.973 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:03.446+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:03.446+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:00.974 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:01.602 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:01.602 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SSEx2tu8AsZc1Fm6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19358/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19358/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:01.602 [print] {
"resourceType": "Organization",
"id": "19358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:04.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:01.602 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:01.604 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:01.604 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SSEx2tu8AsZc1Fm6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19358/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19358/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:01.604 [print] {
"resourceType": "Organization",
"id": "19358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:04.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:01.604 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:02.201 [print] {
"resourceType": "Organization",
"id": "19358",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:04.708+02:00",
"source": "#SSEx2tu8AsZc1Fm6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:02.809 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:03.731 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:05.918+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:05.918+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:03.732 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:04.361 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:04.361 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ytBErzeHVyut9xTo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19359/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19359/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:04.361 [print] {
"resourceType": "Organization",
"id": "19359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:07.469+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:04.361 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:04.362 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:04.362 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ytBErzeHVyut9xTo"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19359/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19359/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:04.363 [print] {
"resourceType": "Organization",
"id": "19359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:07.469+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:04.363 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:05.208 [print] {
"resourceType": "Organization",
"id": "19359",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:07.469+02:00",
"source": "#ytBErzeHVyut9xTo",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:05.840 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:06.448 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:08.941+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:08.941+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:06.449 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:07.068 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:07.069 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wYktUkZuKE3tW1qV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19360/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19360/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:07.069 [print] {
"resourceType": "Organization",
"id": "19360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:10.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:07.069 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:07.071 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:07.071 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wYktUkZuKE3tW1qV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19360/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19360/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:07.071 [print] {
"resourceType": "Organization",
"id": "19360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:10.167+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:07.071 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:07.684 [print] {
"resourceType": "Organization",
"id": "19360",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:10.167+02:00",
"source": "#wYktUkZuKE3tW1qV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:08.303 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:08.903 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:11.415+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:11.415+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:08.904 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:09.505 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:09.505 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V7HcdBAVURJBBnIM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19361/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19361/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:09.505 [print] {
"resourceType": "Organization",
"id": "19361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:12.602+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:09.505 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:09.507 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:09.507 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"V7HcdBAVURJBBnIM"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19361/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19361/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:09.507 [print] {
"resourceType": "Organization",
"id": "19361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:12.602+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:09.507 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:10.427 [print] {
"resourceType": "Organization",
"id": "19361",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:12.602+02:00",
"source": "#V7HcdBAVURJBBnIM",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:11.258 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:11.894 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:14.367+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:14.367+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:11.896 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:12.641 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:12.642 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jsrbLYqsrf26LNh3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19362/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19362/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:12.642 [print] {
"resourceType": "Organization",
"id": "19362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:15.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:12.642 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:12.643 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:12.643 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jsrbLYqsrf26LNh3"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19362/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19362/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:12.643 [print] {
"resourceType": "Organization",
"id": "19362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:15.742+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:12.643 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:13.271 [print] {
"resourceType": "Organization",
"id": "19362",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:15.742+02:00",
"source": "#jsrbLYqsrf26LNh3",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:13.909 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:14.504 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:17.001+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:17.001+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:14.506 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:15.104 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:15.104 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GT9LtgoE5xEMonbL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19363/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19363/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:15.104 [print] {
"resourceType": "Organization",
"id": "19363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:18.213+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:15.104 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:15.106 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:15.106 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GT9LtgoE5xEMonbL"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19363/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19363/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:15.106 [print] {
"resourceType": "Organization",
"id": "19363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:18.213+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:15.106 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:15.715 [print] {
"resourceType": "Organization",
"id": "19363",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:18.213+02:00",
"source": "#GT9LtgoE5xEMonbL",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:16.359 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:16.967 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:19.458+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:19.458+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:16.968 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:17.584 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"352"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:17.584 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CnOuU4uPn2n8Gfz6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19364/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19364/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:17.584 [print] {
"resourceType": "Organization",
"id": "19364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:20.694+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:17.584 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:17.585 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"352"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:17.585 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CnOuU4uPn2n8Gfz6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19364/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19364/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:17.585 [print] {
"resourceType": "Organization",
"id": "19364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:20.694+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:17.585 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:18.201 [print] {
"resourceType": "Organization",
"id": "19364",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:20.694+02:00",
"source": "#CnOuU4uPn2n8Gfz6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO DR. PESET ALEIXANDRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GASPAR AGUILAR 90"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:18.840 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:19.473 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:21.950+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:21.950+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:19.474 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:20.102 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:20.102 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h3TYNGavM0UcwK19"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19365/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19365/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:20.102 [print] {
"resourceType": "Organization",
"id": "19365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:23.192+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:20.102 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:20.103 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:20.104 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h3TYNGavM0UcwK19"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19365/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19365/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:20.104 [print] {
"resourceType": "Organization",
"id": "19365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:23.192+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:20.104 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:20.714 [print] {
"resourceType": "Organization",
"id": "19365",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:23.192+02:00",
"source": "#h3TYNGavM0UcwK19",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:21.378 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:21.990 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:24.490+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:24.490+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:21.992 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:22.629 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:22.629 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DknXysRVZxbV1usf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19366/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19366/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:22.629 [print] {
"resourceType": "Organization",
"id": "19366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:25.732+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:22.630 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:22.631 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:22.631 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DknXysRVZxbV1usf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19366/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19366/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:22.631 [print] {
"resourceType": "Organization",
"id": "19366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:25.732+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:22.631 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:24.223 [print] {
"resourceType": "Organization",
"id": "19366",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:25.732+02:00",
"source": "#DknXysRVZxbV1usf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "SANATORIO SAN FRANCISCO DE BORJA FONTILLES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORBA-VALL DE LAGUAR, KM 4 NUMERO S/N"
],
"city": "Vall de Laguar, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:24.819 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:25.410 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:27.929+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:27.929+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:25.412 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:26.028 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:26.028 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WtwRWgFWqHF2rMIK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19367/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19367/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:26.028 [print] {
"resourceType": "Organization",
"id": "19367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:29.137+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:26.028 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:26.030 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:26.030 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WtwRWgFWqHF2rMIK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19367/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19367/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:26.030 [print] {
"resourceType": "Organization",
"id": "19367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:29.137+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:26.030 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:26.643 [print] {
"resourceType": "Organization",
"id": "19367",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:29.137+02:00",
"source": "#WtwRWgFWqHF2rMIK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:27.281 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:27.878 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:30.391+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:30.391+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:27.881 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:28.548 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:28.548 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tib1yMpHNkFOaAEX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19368/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19368/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:28.548 [print] {
"resourceType": "Organization",
"id": "19368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:31.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:28.548 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:28.550 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:28.550 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tib1yMpHNkFOaAEX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19368/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:31 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19368/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:28.550 [print] {
"resourceType": "Organization",
"id": "19368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:31.643+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:28.550 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:29.171 [print] {
"resourceType": "Organization",
"id": "19368",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:31.643+02:00",
"source": "#tib1yMpHNkFOaAEX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:29.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:30.395 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:32.885+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:32.885+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:30.396 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:30.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:30.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwZiRfotueTI9uC0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19369/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19369/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:30.994 [print] {
"resourceType": "Organization",
"id": "19369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:34.103+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:30.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:30.995 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:30.995 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fwZiRfotueTI9uC0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19369/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19369/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:30.995 [print] {
"resourceType": "Organization",
"id": "19369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:34.103+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:30.995 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:31.603 [print] {
"resourceType": "Organization",
"id": "19369",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:34.103+02:00",
"source": "#fwZiRfotueTI9uC0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:32.268 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:32.882 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:35.348+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:35.348+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:32.884 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:33.501 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:33.501 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pbOoBO5hzY2eaRqY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19370/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19370/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:33.502 [print] {
"resourceType": "Organization",
"id": "19370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:36.612+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:33.502 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:33.503 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:33.503 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pbOoBO5hzY2eaRqY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19370/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19370/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:33.503 [print] {
"resourceType": "Organization",
"id": "19370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:36.612+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:33.503 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:34.110 [print] {
"resourceType": "Organization",
"id": "19370",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:36.612+02:00",
"source": "#pbOoBO5hzY2eaRqY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:34.718 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:35.342 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:37.825+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:37.825+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:35.343 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:35.960 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:35.960 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CWG3ZAsUfY3aq3h6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19371/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19371/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:35.960 [print] {
"resourceType": "Organization",
"id": "19371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:39.063+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:35.960 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:35.961 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:35.961 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CWG3ZAsUfY3aq3h6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19371/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19371/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:35.961 [print] {
"resourceType": "Organization",
"id": "19371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:39.063+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:35.961 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:36.551 [print] {
"resourceType": "Organization",
"id": "19371",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:39.063+02:00",
"source": "#CWG3ZAsUfY3aq3h6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:37.182 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:37.769 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:40.279+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:40.279+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:37.770 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:38.388 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:38.388 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z4HZk8V82WQTFH1P"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19372/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19372/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:38.388 [print] {
"resourceType": "Organization",
"id": "19372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:41.496+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:38.388 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:38.389 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:38.389 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"z4HZk8V82WQTFH1P"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19372/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19372/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:38.389 [print] {
"resourceType": "Organization",
"id": "19372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:41.496+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:38.389 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:38.982 [print] {
"resourceType": "Organization",
"id": "19372",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:41.496+02:00",
"source": "#z4HZk8V82WQTFH1P",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:39.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:40.235 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:42.716+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:42.716+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:40.237 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:40.887 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:40.887 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WhL4kVxp0NpGlLRX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19373/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19373/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:40.887 [print] {
"resourceType": "Organization",
"id": "19373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:43.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:40.887 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:40.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:40.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"WhL4kVxp0NpGlLRX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19373/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19373/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:40.889 [print] {
"resourceType": "Organization",
"id": "19373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:43.961+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:40.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:41.501 [print] {
"resourceType": "Organization",
"id": "19373",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:43.961+02:00",
"source": "#WhL4kVxp0NpGlLRX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:42.156 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 22ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 22ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:42.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:45.250+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:45.250+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:42.800 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:43.398 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:43.398 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7olVhu4NYzTRhYe6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19374/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:43.398 [print] {
"resourceType": "Organization",
"id": "19374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:46.506+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:43.398 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:43.399 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:43.399 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7olVhu4NYzTRhYe6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19374/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19374/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:43.399 [print] {
"resourceType": "Organization",
"id": "19374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:46.506+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:43.399 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:44.001 [print] {
"resourceType": "Organization",
"id": "19374",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:46.506+02:00",
"source": "#7olVhu4NYzTRhYe6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA NUESTRA SEÑORA DE LA PAZ",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE LOPEZ DE HOYOS 259"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:44.602 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:45.224 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:47.714+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:47.714+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:45.225 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:45.846 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"346"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:45.846 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h17W72KNg12MY8bp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19375/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:45.846 [print] {
"resourceType": "Organization",
"id": "19375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:48.955+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:45.846 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:45.848 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"346"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:45.848 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"h17W72KNg12MY8bp"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19375/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:48 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19375/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:48 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:45.848 [print] {
"resourceType": "Organization",
"id": "19375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:48.955+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:45.848 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:46.446 [print] {
"resourceType": "Organization",
"id": "19375",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:48.955+02:00",
"source": "#h17W72KNg12MY8bp",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CAMI ALMAZARA 11"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:47.160 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:47.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:50.262+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:50.262+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:47.799 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:48.816 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:48.816 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vm5ev2Wq65y2vwy6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19376/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:48.816 [print] {
"resourceType": "Organization",
"id": "19376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:51.912+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:48.816 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:48.817 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"334"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:48.818 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vm5ev2Wq65y2vwy6"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19376/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19376/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:48.818 [print] {
"resourceType": "Organization",
"id": "19376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:51.912+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:48.818 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:49.408 [print] {
"resourceType": "Organization",
"id": "19376",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:51.912+02:00",
"source": "#vm5ev2Wq65y2vwy6",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE MANISES",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA GENERALITAT VALENCIANA 50"
],
"city": "Manises",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:50.011 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:50.678 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:53.118+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:53.118+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:50.679 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:51.300 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:51.300 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Hkybfx9RPjqNuv1Y"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19377/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:51.301 [print] {
"resourceType": "Organization",
"id": "19377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:54.410+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:51.301 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:51.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:51.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Hkybfx9RPjqNuv1Y"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19377/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:54 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19377/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:51.302 [print] {
"resourceType": "Organization",
"id": "19377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:54.410+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:51.302 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:51.913 [print] {
"resourceType": "Organization",
"id": "19377",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:54.410+02:00",
"source": "#Hkybfx9RPjqNuv1Y",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:52.540 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:53.174 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:55.651+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:55.651+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:53.176 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:53.791 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:53.791 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LVZOTaJAVQ7wWFXr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19378/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:53.791 [print] {
"resourceType": "Organization",
"id": "19378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:56.901+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:53.792 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:53.793 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:53.793 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LVZOTaJAVQ7wWFXr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19378/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19378/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:53.793 [print] {
"resourceType": "Organization",
"id": "19378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:56.901+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:53.793 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:54.408 [print] {
"resourceType": "Organization",
"id": "19378",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:56.901+02:00",
"source": "#LVZOTaJAVQ7wWFXr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:55.053 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:55.647 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:19:58.161+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:19:58.161+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:55.648 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:56.288 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:56.288 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mr25ifaFPrGJ5EQY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19379/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:56.288 [print] {
"resourceType": "Organization",
"id": "19379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:59.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:56.288 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:56.289 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:56.289 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Mr25ifaFPrGJ5EQY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19379/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:19:59 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19379/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:19:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:56.289 [print] {
"resourceType": "Organization",
"id": "19379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:59.373+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:56.289 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:56.908 [print] {
"resourceType": "Organization",
"id": "19379",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:19:59.373+02:00",
"source": "#Mr25ifaFPrGJ5EQY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:57.526 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 13ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 13ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:19:58.144 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:00.637+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:00.637+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:19:58.145 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:58.779 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"363"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:58.779 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"D8Q958FDG86NyYlq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19380/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:58.779 [print] {
"resourceType": "Organization",
"id": "19380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:01.884+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:58.779 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:19:58.781 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"363"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:19:58.781 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"D8Q958FDG86NyYlq"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19380/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19380/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:19:58.781 [print] {
"resourceType": "Organization",
"id": "19380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:01.884+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:19:58.781 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:19:59.381 [print] {
"resourceType": "Organization",
"id": "19380",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:01.884+02:00",
"source": "#D8Q958FDG86NyYlq",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BENICASIM S/N"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:19:59.997 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:00.607 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:03.104+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:03.104+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:00.609 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:01.261 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:01.261 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E4MOfGqflwmofXfT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19381/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:01.261 [print] {
"resourceType": "Organization",
"id": "19381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:04.355+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:01.261 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:01.263 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:01.263 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"E4MOfGqflwmofXfT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19381/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19381/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:01.263 [print] {
"resourceType": "Organization",
"id": "19381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:04.355+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:01.263 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:01.865 [print] {
"resourceType": "Organization",
"id": "19381",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:04.355+02:00",
"source": "#E4MOfGqflwmofXfT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:02.504 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:03.129 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:05.615+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:05.615+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:03.130 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:03.740 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:03.740 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EgSpdWKp5zSvtUzc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19382/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:03.740 [print] {
"resourceType": "Organization",
"id": "19382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:06.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:03.740 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:03.742 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:03.742 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EgSpdWKp5zSvtUzc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19382/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19382/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:03.742 [print] {
"resourceType": "Organization",
"id": "19382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:06.840+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:03.742 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:04.356 [print] {
"resourceType": "Organization",
"id": "19382",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:06.840+02:00",
"source": "#EgSpdWKp5zSvtUzc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:04.985 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:05.598 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:08.092+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:08.092+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:05.599 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:06.246 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:06.246 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BkCKiBxu7h2W1RxR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19383/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:06.246 [print] {
"resourceType": "Organization",
"id": "19383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:09.340+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:06.246 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:06.249 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:06.249 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BkCKiBxu7h2W1RxR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19383/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19383/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:06.249 [print] {
"resourceType": "Organization",
"id": "19383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:09.340+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:06.249 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:06.890 [print] {
"resourceType": "Organization",
"id": "19383",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:09.340+02:00",
"source": "#BkCKiBxu7h2W1RxR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:07.550 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:08.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:10.661+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:10.661+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:08.223 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:08.872 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"375"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:08.872 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5thhNnbq3XU2vJKP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19384/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:08.872 [print] {
"resourceType": "Organization",
"id": "19384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:11.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:08.872 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:08.874 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"375"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:08.874 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5thhNnbq3XU2vJKP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19384/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:11 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19384/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:11 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:08.874 [print] {
"resourceType": "Organization",
"id": "19384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:11.959+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:08.874 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:09.486 [print] {
"resourceType": "Organization",
"id": "19384",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:11.959+02:00",
"source": "#5thhNnbq3XU2vJKP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL SANT VICENT DEL RASPEIG",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE LILLO JUAN 137"
],
"city": "San Vicente del Raspeig/Sant Vicent del Raspeig",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:10.093 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:10.726 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:13.204+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:13.204+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:10.728 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:11.383 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:11.383 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wTrZy7vAgd1k1Gap"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19385/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:11.383 [print] {
"resourceType": "Organization",
"id": "19385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:14.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:11.383 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:11.385 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:11.385 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"wTrZy7vAgd1k1Gap"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19385/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19385/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:11.385 [print] {
"resourceType": "Organization",
"id": "19385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:14.472+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:11.385 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:11.996 [print] {
"resourceType": "Organization",
"id": "19385",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:14.472+02:00",
"source": "#wTrZy7vAgd1k1Gap",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:12.610 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:13.260 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:15.722+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:15.722+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:13.261 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:13.874 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:13.874 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TU5tN5jH66PNI6vP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19386/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:13.874 [print] {
"resourceType": "Organization",
"id": "19386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:16.982+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:13.874 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:13.876 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:13.876 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TU5tN5jH66PNI6vP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19386/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19386/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:13.876 [print] {
"resourceType": "Organization",
"id": "19386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:16.982+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:13.876 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:14.482 [print] {
"resourceType": "Organization",
"id": "19386",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:16.982+02:00",
"source": "#TU5tN5jH66PNI6vP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:15.107 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:15.713 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:18.220+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:18.220+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:15.715 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:16.342 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:16.342 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YswwSmUUy35vRF63"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19387/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:16.342 [print] {
"resourceType": "Organization",
"id": "19387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:19.451+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:16.342 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:16.344 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:16.344 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"YswwSmUUy35vRF63"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19387/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:19 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19387/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:19 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:16.344 [print] {
"resourceType": "Organization",
"id": "19387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:19.451+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:16.344 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:16.953 [print] {
"resourceType": "Organization",
"id": "19387",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:19.451+02:00",
"source": "#YswwSmUUy35vRF63",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:17.552 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:18.154 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:20.662+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:20.662+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:18.155 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:18.758 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:18.758 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mqLxoJ2dkTgRWacC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19388/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:18.758 [print] {
"resourceType": "Organization",
"id": "19388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:21.863+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:18.758 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:18.759 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:18.759 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mqLxoJ2dkTgRWacC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19388/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19388/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:18.759 [print] {
"resourceType": "Organization",
"id": "19388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:21.863+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:18.759 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:19.359 [print] {
"resourceType": "Organization",
"id": "19388",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:21.863+02:00",
"source": "#mqLxoJ2dkTgRWacC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:19.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:20.573 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:23.087+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:23.087+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:20.574 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:21.198 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:21.198 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9r18UV7wSr2z5CA4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19389/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:21.198 [print] {
"resourceType": "Organization",
"id": "19389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:24.306+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:21.198 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:21.200 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:21.200 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"9r18UV7wSr2z5CA4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19389/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19389/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:21.200 [print] {
"resourceType": "Organization",
"id": "19389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:24.306+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:21.200 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:21.804 [print] {
"resourceType": "Organization",
"id": "19389",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:24.306+02:00",
"source": "#9r18UV7wSr2z5CA4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:22.462 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:23.072 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:25.561+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:25.561+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:23.073 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:23.683 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:23.683 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZSKyNDxW11G2UFqR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19390/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:23.683 [print] {
"resourceType": "Organization",
"id": "19390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:26.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:23.683 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:23.685 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:23.685 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZSKyNDxW11G2UFqR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19390/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19390/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:23.685 [print] {
"resourceType": "Organization",
"id": "19390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:26.793+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:23.685 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:24.288 [print] {
"resourceType": "Organization",
"id": "19390",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:26.793+02:00",
"source": "#ZSKyNDxW11G2UFqR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:24.901 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:25.529 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:28.013+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:28.013+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:25.531 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:26.152 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:26.152 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VdS1wLfZG2lEDWXF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19391/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:26.152 [print] {
"resourceType": "Organization",
"id": "19391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:29.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:26.152 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:26.154 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:26.154 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"VdS1wLfZG2lEDWXF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19391/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19391/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:26.154 [print] {
"resourceType": "Organization",
"id": "19391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:29.250+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:26.154 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:26.749 [print] {
"resourceType": "Organization",
"id": "19391",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:29.250+02:00",
"source": "#VdS1wLfZG2lEDWXF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:28.354 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:28.976 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:31.465+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:31.465+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:28.978 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:29.613 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:29.614 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZOrqR7r3SneCFXdC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19392/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:29.614 [print] {
"resourceType": "Organization",
"id": "19392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:32.722+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:29.614 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:29.616 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:29.616 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZOrqR7r3SneCFXdC"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19392/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19392/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:29.616 [print] {
"resourceType": "Organization",
"id": "19392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:32.722+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:29.616 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:30.232 [print] {
"resourceType": "Organization",
"id": "19392",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:32.722+02:00",
"source": "#ZOrqR7r3SneCFXdC",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:30.844 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:31.447 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:33.954+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:33.954+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:31.447 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:32.075 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:32.075 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3GhtoXh5UHAvh8Te"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19393/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:32.075 [print] {
"resourceType": "Organization",
"id": "19393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:35.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:32.076 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:32.077 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:32.077 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"3GhtoXh5UHAvh8Te"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19393/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19393/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:32.077 [print] {
"resourceType": "Organization",
"id": "19393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:35.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:32.077 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:32.700 [print] {
"resourceType": "Organization",
"id": "19393",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:35.183+02:00",
"source": "#3GhtoXh5UHAvh8Te",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:33.358 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:33.977 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:36.466+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:36.466+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:33.978 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:34.600 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:34.600 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zziSpNItnddIusA8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19394/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:34.600 [print] {
"resourceType": "Organization",
"id": "19394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:37.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:34.600 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:34.601 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:34.601 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"zziSpNItnddIusA8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19394/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19394/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:37 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:34.601 [print] {
"resourceType": "Organization",
"id": "19394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:37.698+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:34.601 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:35.226 [print] {
"resourceType": "Organization",
"id": "19394",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:37.698+02:00",
"source": "#zziSpNItnddIusA8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:35.830 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:36.453 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:38.943+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:38.943+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:36.455 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:37.075 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:37.075 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1oj6T0IV8klMtwop"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19395/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:37.075 [print] {
"resourceType": "Organization",
"id": "19395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:40.184+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:37.075 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:37.077 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:37.077 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1oj6T0IV8klMtwop"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19395/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19395/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:37.077 [print] {
"resourceType": "Organization",
"id": "19395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:40.184+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:37.077 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:37.724 [print] {
"resourceType": "Organization",
"id": "19395",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:40.184+02:00",
"source": "#1oj6T0IV8klMtwop",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:38.342 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:38.944 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:41.450+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:41.450+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:38.946 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:39.559 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:39.559 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pyo2S45gy6cblz3u"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19396/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:39.559 [print] {
"resourceType": "Organization",
"id": "19396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:42.658+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:39.559 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:39.561 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:39.561 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pyo2S45gy6cblz3u"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19396/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19396/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:42 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:39.561 [print] {
"resourceType": "Organization",
"id": "19396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:42.658+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:39.561 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:40.164 [print] {
"resourceType": "Organization",
"id": "19396",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:42.658+02:00",
"source": "#pyo2S45gy6cblz3u",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:40.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 12ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:41.420 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:43.926+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:43.926+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:41.421 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:42.249 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:42.249 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZEabhJ0BjQFv0UEA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19397/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:42.249 [print] {
"resourceType": "Organization",
"id": "19397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:45.151+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:42.249 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:42.251 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:42.251 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZEabhJ0BjQFv0UEA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19397/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:45 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19397/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:42.251 [print] {
"resourceType": "Organization",
"id": "19397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:45.151+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:42.251 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:42.868 [print] {
"resourceType": "Organization",
"id": "19397",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:45.151+02:00",
"source": "#ZEabhJ0BjQFv0UEA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CLINICA CAJAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SENADOR CASTILLO OLIVARES 15"
],
"city": "Palmas de Gran Canaria, Las",
"state": "LAS PALMAS",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:43.535 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:44.134 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:46.641+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:46.641+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:44.135 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:44.773 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:44.773 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lkOWPPTVFNchNs7f"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19398/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:44.773 [print] {
"resourceType": "Organization",
"id": "19398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:47.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:44.773 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:44.774 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:44.774 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"lkOWPPTVFNchNs7f"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19398/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19398/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:44.774 [print] {
"resourceType": "Organization",
"id": "19398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:47.877+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:44.774 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:45.376 [print] {
"resourceType": "Organization",
"id": "19398",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:47.877+02:00",
"source": "#lkOWPPTVFNchNs7f",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED ELCHE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MAX PLANCK S/N"
],
"city": "Elche/Elx",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:47.002 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:47.606 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:50.113+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:50.113+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:47.608 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:48.210 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:48.210 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mfR6UTXBHRXBz5cg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19399/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:48.210 [print] {
"resourceType": "Organization",
"id": "19399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:51.318+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:48.210 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:48.212 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:48.212 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mfR6UTXBHRXBz5cg"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19399/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:51 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19399/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:48.212 [print] {
"resourceType": "Organization",
"id": "19399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:51.318+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:48.212 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:48.799 [print] {
"resourceType": "Organization",
"id": "19399",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:51.318+02:00",
"source": "#mfR6UTXBHRXBz5cg",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:49.410 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:50.012 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:52.517+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:52.517+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:50.012 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:50.640 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:50.640 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXysaEOIRR3uhomP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19400/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:50.640 [print] {
"resourceType": "Organization",
"id": "19400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:53.748+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:50.640 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:50.641 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:50.641 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"OXysaEOIRR3uhomP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19400/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19400/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:53 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:50.641 [print] {
"resourceType": "Organization",
"id": "19400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:53.748+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:50.641 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:51.251 [print] {
"resourceType": "Organization",
"id": "19400",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:53.748+02:00",
"source": "#OXysaEOIRR3uhomP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:51.890 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:52.501 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:55.000+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:55.000+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:52.502 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:53.103 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:53.103 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7OJS0DEd9orD73LE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19401/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:53.103 [print] {
"resourceType": "Organization",
"id": "19401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:56.210+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:53.103 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:53.105 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:53.105 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7OJS0DEd9orD73LE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19401/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:56 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19401/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:56 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:53.105 [print] {
"resourceType": "Organization",
"id": "19401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:56.210+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:53.105 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:53.727 [print] {
"resourceType": "Organization",
"id": "19401",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:56.210+02:00",
"source": "#7OJS0DEd9orD73LE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:54.643 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:55.244 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:20:57.743+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:20:57.743+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:55.246 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:55.851 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:55.851 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6uqt3H3JOBgZCkLE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19402/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:55.851 [print] {
"resourceType": "Organization",
"id": "19402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:58.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:55.851 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:55.853 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:55.853 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"6uqt3H3JOBgZCkLE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19402/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:20:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19402/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:20:58 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:55.853 [print] {
"resourceType": "Organization",
"id": "19402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:58.958+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:55.853 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:56.489 [print] {
"resourceType": "Organization",
"id": "19402",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:20:58.958+02:00",
"source": "#6uqt3H3JOBgZCkLE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:57.124 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:20:57.763 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:00.230+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:00.230+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:20:57.765 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:58.760 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:58.760 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cIqpUsVYpXeR6Anr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19403/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:58.760 [print] {
"resourceType": "Organization",
"id": "19403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:01.852+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:58.760 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:20:58.763 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:20:58.763 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"cIqpUsVYpXeR6Anr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19403/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19403/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:20:58.763 [print] {
"resourceType": "Organization",
"id": "19403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:01.852+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:20:58.763 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:20:59.365 [print] {
"resourceType": "Organization",
"id": "19403",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:01.852+02:00",
"source": "#cIqpUsVYpXeR6Anr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:20:59.992 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:00.655 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:03.102+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:03.102+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:00.657 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:01.308 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:01.308 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aa8vg4yS58FgNVUz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19404/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:01.308 [print] {
"resourceType": "Organization",
"id": "19404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:04.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:01.308 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:01.309 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:01.309 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"aa8vg4yS58FgNVUz"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19404/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19404/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:01.309 [print] {
"resourceType": "Organization",
"id": "19404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:04.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:01.309 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:02.230 [print] {
"resourceType": "Organization",
"id": "19404",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:04.394+02:00",
"source": "#aa8vg4yS58FgNVUz",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:02.899 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:03.543 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:05.994+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:05.994+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:03.545 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:04.186 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:04.186 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0a7Jar0BCSp8L0dS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19405/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:04.186 [print] {
"resourceType": "Organization",
"id": "19405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:07.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:04.186 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:04.187 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:04.187 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0a7Jar0BCSp8L0dS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19405/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19405/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:04.187 [print] {
"resourceType": "Organization",
"id": "19405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:07.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:04.187 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:04.783 [print] {
"resourceType": "Organization",
"id": "19405",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:07.282+02:00",
"source": "#0a7Jar0BCSp8L0dS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:05.395 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:05.997 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:08.507+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:08.507+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:05.999 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:06.651 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:06.652 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Be7KFh7ZjInGDINW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19406/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:06.652 [print] {
"resourceType": "Organization",
"id": "19406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:09.745+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:06.652 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:06.654 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:06.654 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Be7KFh7ZjInGDINW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19406/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19406/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:06.654 [print] {
"resourceType": "Organization",
"id": "19406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:09.745+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:06.654 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:07.242 [print] {
"resourceType": "Organization",
"id": "19406",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:09.745+02:00",
"source": "#Be7KFh7ZjInGDINW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:07.863 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:08.494 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:10.975+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:10.975+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:08.495 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:09.337 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"367"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:09.337 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"neYHkYhTlCGtY2Lm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19407/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:09.337 [print] {
"resourceType": "Organization",
"id": "19407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:12.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:09.338 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:09.339 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"367"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:09.339 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"neYHkYhTlCGtY2Lm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19407/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19407/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:09.339 [print] {
"resourceType": "Organization",
"id": "19407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:12.421+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:09.339 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:09.927 [print] {
"resourceType": "Organization",
"id": "19407",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:12.421+02:00",
"source": "#neYHkYhTlCGtY2Lm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITALARIO PROVINCIAL DE CASTELLON",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DOCTOR CLARA 19"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:10.589 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:11.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:13.683+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:13.683+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:11.253 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:11.915 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:11.915 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mgXVs7gYSpRjwNTW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19408/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:11.915 [print] {
"resourceType": "Organization",
"id": "19408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:14.990+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:11.915 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:11.916 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:11.917 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"mgXVs7gYSpRjwNTW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19408/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:14 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19408/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:11.917 [print] {
"resourceType": "Organization",
"id": "19408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:14.990+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:11.917 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:12.550 [print] {
"resourceType": "Organization",
"id": "19408",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:14.990+02:00",
"source": "#mgXVs7gYSpRjwNTW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:13.175 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:13.844 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:16.286+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:16.286+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:13.846 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:14.454 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:14.454 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MDN67i9dSAlg3klS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19409/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:14.454 [print] {
"resourceType": "Organization",
"id": "19409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:17.557+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:14.454 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:14.456 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:14.456 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MDN67i9dSAlg3klS"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19409/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:17 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19409/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:14.456 [print] {
"resourceType": "Organization",
"id": "19409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:17.557+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:14.456 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:15.206 [print] {
"resourceType": "Organization",
"id": "19409",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:17.557+02:00",
"source": "#MDN67i9dSAlg3klS",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VEGA BAJA DE ORIHUELA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA ORIHUELA-ALMORADI S/N"
],
"city": "Orihuela",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:15.874 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:16.530 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:18.977+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:18.977+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:16.532 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:17.147 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"361"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:17.147 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pXWzecfmIq9EjA7O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19410/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:17.147 [print] {
"resourceType": "Organization",
"id": "19410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:20.257+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:17.147 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:17.148 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"361"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:17.148 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pXWzecfmIq9EjA7O"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19410/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19410/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:17.148 [print] {
"resourceType": "Organization",
"id": "19410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:20.257+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:17.149 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:17.780 [print] {
"resourceType": "Organization",
"id": "19410",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:20.257+02:00",
"source": "#pXWzecfmIq9EjA7O",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRE INTEGRAL DE SERVEIS EN SALUT MENTAL COMUNITARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE VERNTALLAT 11-19"
],
"city": "Barcelona",
"state": "BARCELONA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:18.405 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 13ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 13ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:19.015 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:21.511+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:21.511+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:19.017 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:19.653 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:19.653 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UVZyUz0diSKW0n9K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19411/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:19.653 [print] {
"resourceType": "Organization",
"id": "19411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:22.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:19.653 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:19.654 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:19.654 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UVZyUz0diSKW0n9K"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19411/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:22 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19411/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:22 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:19.654 [print] {
"resourceType": "Organization",
"id": "19411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:22.750+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:19.655 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:20.391 [print] {
"resourceType": "Organization",
"id": "19411",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:22.750+02:00",
"source": "#UVZyUz0diSKW0n9K",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:21.003 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:21.636 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:24.113+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:24.113+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:21.636 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:22.265 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:22.265 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z0cEvmYLyZ1gzQx0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19412/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:22.265 [print] {
"resourceType": "Organization",
"id": "19412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:25.363+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:22.265 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:22.266 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:22.266 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"Z0cEvmYLyZ1gzQx0"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19412/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:25 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19412/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:25 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:22.266 [print] {
"resourceType": "Organization",
"id": "19412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:25.363+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:22.266 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:22.905 [print] {
"resourceType": "Organization",
"id": "19412",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:25.363+02:00",
"source": "#Z0cEvmYLyZ1gzQx0",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:23.570 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:24.164 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:26.670+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:26.670+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:24.166 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:24.785 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:24.785 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IzgiQTHkmKT5EKMZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19413/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:24.785 [print] {
"resourceType": "Organization",
"id": "19413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:27.886+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:24.785 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:24.787 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:24.787 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"IzgiQTHkmKT5EKMZ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19413/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:27 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19413/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:27 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:24.787 [print] {
"resourceType": "Organization",
"id": "19413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:27.886+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:24.787 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:25.400 [print] {
"resourceType": "Organization",
"id": "19413",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:27.886+02:00",
"source": "#IzgiQTHkmKT5EKMZ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:26.033 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:26.658 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:29.146+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:29.146+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:26.660 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:27.312 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:27.312 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"j6vuCxNQSrgJ4vrE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19414/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:27.312 [print] {
"resourceType": "Organization",
"id": "19414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:30.412+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:27.312 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:27.314 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:27.314 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"j6vuCxNQSrgJ4vrE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19414/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:30 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19414/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:30 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:27.314 [print] {
"resourceType": "Organization",
"id": "19414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:30.412+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:27.314 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:27.950 [print] {
"resourceType": "Organization",
"id": "19414",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:30.412+02:00",
"source": "#j6vuCxNQSrgJ4vrE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:28.590 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:29.222 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:31.703+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:31.703+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:29.224 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:29.864 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:29.864 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CbnyOMq94w7oxlk1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19415/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:29.864 [print] {
"resourceType": "Organization",
"id": "19415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:32.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:29.864 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:29.866 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:29.866 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"CbnyOMq94w7oxlk1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19415/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19415/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:32 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:29.866 [print] {
"resourceType": "Organization",
"id": "19415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:32.968+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:29.866 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:30.495 [print] {
"resourceType": "Organization",
"id": "19415",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:32.968+02:00",
"source": "#CbnyOMq94w7oxlk1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:31.339 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:31.940 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:34.435+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:34.435+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:31.940 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:32.590 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:32.590 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7iPwnc6NjOtLH9k8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19416/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:32.590 [print] {
"resourceType": "Organization",
"id": "19416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:35.696+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:32.590 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:32.592 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"330"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:32.592 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7iPwnc6NjOtLH9k8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19416/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19416/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:32.592 [print] {
"resourceType": "Organization",
"id": "19416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:35.696+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:32.592 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:33.240 [print] {
"resourceType": "Organization",
"id": "19416",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:35.696+02:00",
"source": "#7iPwnc6NjOtLH9k8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE REQUENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CASABLANCA S/N"
],
"city": "Requena",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:33.856 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:34.490 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:36.965+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:36.965+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:34.492 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:35.124 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"359"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:35.124 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7uKE6594ewAXL775"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19417/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:35.124 [print] {
"resourceType": "Organization",
"id": "19417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:38.231+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:35.124 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:35.126 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"359"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:35.126 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7uKE6594ewAXL775"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19417/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19417/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:35.126 [print] {
"resourceType": "Organization",
"id": "19417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:38.231+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:35.126 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:35.733 [print] {
"resourceType": "Organization",
"id": "19417",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:38.231+02:00",
"source": "#7uKE6594ewAXL775",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "FUNDACION INSTITUTO VALENCIANO DE ONCOLOGIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PROFESOR BELTRAN BAGUENA 8"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:36.331 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:36.965 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:39.438+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:39.438+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:36.966 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:37.605 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:37.605 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XM1TpXTpVb5cfAjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19418/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:37.605 [print] {
"resourceType": "Organization",
"id": "19418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:40.701+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:37.605 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:37.607 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:37.607 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"XM1TpXTpVb5cfAjR"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19418/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:40 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19418/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:37.607 [print] {
"resourceType": "Organization",
"id": "19418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:40.701+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:37.607 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:38.598 [print] {
"resourceType": "Organization",
"id": "19418",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:40.701+02:00",
"source": "#XM1TpXTpVb5cfAjR",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:39.234 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:39.881 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:42.329+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:42.329+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:39.883 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:41.473 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:41.473 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nL2BklP2PO9LkO3S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19419/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:41.473 [print] {
"resourceType": "Organization",
"id": "19419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:44.569+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:41.473 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:41.475 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:41.475 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nL2BklP2PO9LkO3S"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19419/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19419/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:41.475 [print] {
"resourceType": "Organization",
"id": "19419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:44.569+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:41.475 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:42.112 [print] {
"resourceType": "Organization",
"id": "19419",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:44.569+02:00",
"source": "#nL2BklP2PO9LkO3S",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:42.758 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:43.397 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:45.857+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:45.857+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:43.398 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:44.038 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"341"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:44.038 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GlFzNXBmzup0TLcm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19420/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:44.038 [print] {
"resourceType": "Organization",
"id": "19420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:47.145+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:44.038 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:44.039 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"341"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:44.039 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"GlFzNXBmzup0TLcm"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19420/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19420/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:47 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:44.039 [print] {
"resourceType": "Organization",
"id": "19420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:47.145+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:44.039 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:44.642 [print] {
"resourceType": "Organization",
"id": "19420",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:47.145+02:00",
"source": "#GlFzNXBmzup0TLcm",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL DE ONTINYENT",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DE FRANCISCO CERDA 3"
],
"city": "Ontinyent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:45.250 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:45.870 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:48.359+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:48.359+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:45.871 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:46.533 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:46.533 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vhtsgTd8uAhupHqn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19421/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:46.533 [print] {
"resourceType": "Organization",
"id": "19421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:49.624+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:46.533 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:46.534 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"357"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:46.534 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"vhtsgTd8uAhupHqn"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19421/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19421/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:46.534 [print] {
"resourceType": "Organization",
"id": "19421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:49.624+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:46.534 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:47.150 [print] {
"resourceType": "Organization",
"id": "19421",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:49.624+02:00",
"source": "#vhtsgTd8uAhupHqn",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CONSORCIO HOSPITAL GENERAL UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA TRES CRUCES 2"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:47.799 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 11ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 11ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:48.456 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:50.901+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:50.901+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:48.457 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:49.093 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:49.093 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"an7S8prsmPA4uZOF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19422/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:49.093 [print] {
"resourceType": "Organization",
"id": "19422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:52.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:49.093 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:49.095 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:49.095 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"an7S8prsmPA4uZOF"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19422/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19422/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:49.095 [print] {
"resourceType": "Organization",
"id": "19422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:52.200+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:49.095 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:50.835 [print] {
"resourceType": "Organization",
"id": "19422",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:52.200+02:00",
"source": "#an7S8prsmPA4uZOF",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:51.464 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:52.101 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:54.576+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:54.576+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:52.102 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:52.725 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:52.725 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G2KGY6EiTmsDzqoK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19423/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:52.725 [print] {
"resourceType": "Organization",
"id": "19423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:55.831+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:52.725 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:52.726 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:52.726 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G2KGY6EiTmsDzqoK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19423/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19423/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:55 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:52.727 [print] {
"resourceType": "Organization",
"id": "19423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:55.831+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:52.727 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:53.322 [print] {
"resourceType": "Organization",
"id": "19423",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:55.831+02:00",
"source": "#G2KGY6EiTmsDzqoK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:53.970 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:54.573 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:21:57.061+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:21:57.061+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:54.573 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:55.497 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:55.497 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kvCuEp4zZO4ICAfG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19424/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:55.497 [print] {
"resourceType": "Organization",
"id": "19424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:58.308+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:55.497 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:55.497 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:55.497 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kvCuEp4zZO4ICAfG"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19424/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:21:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19424/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:21:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:55.497 [print] {
"resourceType": "Organization",
"id": "19424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:58.308+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:55.497 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:56.762 [print] {
"resourceType": "Organization",
"id": "19424",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:21:58.308+02:00",
"source": "#kvCuEp4zZO4ICAfG",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED LEVANTE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DR SANTIAGO RAMON Y CAJAL 7"
],
"city": "Benidorm",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:57.379 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:21:57.965 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:00.490+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:00.490+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:21:57.965 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:58.598 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:58.598 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ba0SX0WDXPQLR8mc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19425/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:58.598 [print] {
"resourceType": "Organization",
"id": "19425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:01.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:58.598 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:21:58.598 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:21:58.598 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ba0SX0WDXPQLR8mc"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19425/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19425/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:21:58.598 [print] {
"resourceType": "Organization",
"id": "19425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:01.708+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:21:58.598 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:21:59.222 [print] {
"resourceType": "Organization",
"id": "19425",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:01.708+02:00",
"source": "#ba0SX0WDXPQLR8mc",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:21:59.876 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:00.706 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:02.980+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:02.980+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:00.706 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:01.704 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:01.704 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KhOaqdiQYh48w90H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19426/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:01.704 [print] {
"resourceType": "Organization",
"id": "19426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:04.810+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:01.704 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:01.706 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:01.706 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KhOaqdiQYh48w90H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19426/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19426/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:01.706 [print] {
"resourceType": "Organization",
"id": "19426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:04.810+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:01.706 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:02.326 [print] {
"resourceType": "Organization",
"id": "19426",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:04.810+02:00",
"source": "#KhOaqdiQYh48w90H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:03.207 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:03.868 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:06.313+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:06.313+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:03.869 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:04.485 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"322"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:04.485 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iIRHwplwnCNPjM0H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19427/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:04.485 [print] {
"resourceType": "Organization",
"id": "19427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:07.594+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:04.485 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:04.488 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"322"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:04.488 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"iIRHwplwnCNPjM0H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19427/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:07 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19427/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:07 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:04.488 [print] {
"resourceType": "Organization",
"id": "19427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:07.594+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:04.488 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:05.130 [print] {
"resourceType": "Organization",
"id": "19427",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:07.594+02:00",
"source": "#iIRHwplwnCNPjM0H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DEL MAR",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DE HONDURAS 14"
],
"city": "Madrid",
"state": "MADRID",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:05.804 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:06.733 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:08.898+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:08.898+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:06.734 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:07.416 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:07.416 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FiLPNWAgLi0LP33H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19428/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:07.416 [print] {
"resourceType": "Organization",
"id": "19428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:10.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:07.416 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:07.418 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:07.418 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FiLPNWAgLi0LP33H"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19428/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19428/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:10 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:07.418 [print] {
"resourceType": "Organization",
"id": "19428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:10.512+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:07.418 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:08.024 [print] {
"resourceType": "Organization",
"id": "19428",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:10.512+02:00",
"source": "#FiLPNWAgLi0LP33H",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL REY D. JAIME",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE MARIA ROSA MOLAS 25"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:08.643 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:09.271 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:11.752+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:11.752+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:09.272 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:09.918 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:09.918 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BaO8TtOAwbdTNKrK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19429/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:09.918 [print] {
"resourceType": "Organization",
"id": "19429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:12.994+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:09.918 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:09.920 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:09.920 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"BaO8TtOAwbdTNKrK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19429/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19429/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:09.920 [print] {
"resourceType": "Organization",
"id": "19429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:12.994+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:09.920 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:10.550 [print] {
"resourceType": "Organization",
"id": "19429",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:12.994+02:00",
"source": "#BaO8TtOAwbdTNKrK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DR. ESQUERDO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON DE CAMPOAMOR 25"
],
"city": "Sant Joan d''Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:11.210 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:11.883 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:14.317+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:14.317+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:11.884 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:12.522 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:12.522 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R4yYkrjTunq8JBn8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19430/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:12.522 [print] {
"resourceType": "Organization",
"id": "19430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:15.629+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:12.522 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:12.524 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:12.524 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"R4yYkrjTunq8JBn8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19430/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19430/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:15 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:12.524 [print] {
"resourceType": "Organization",
"id": "19430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:15.629+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:12.524 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:13.136 [print] {
"resourceType": "Organization",
"id": "19430",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:15.629+02:00",
"source": "#R4yYkrjTunq8JBn8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:13.782 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:14.461 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:16.882+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:16.882+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:14.462 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:15.096 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:15.096 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bZhMN3t1abKHFM1r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19431/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:15.096 [print] {
"resourceType": "Organization",
"id": "19431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:18.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:15.096 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:15.099 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:15.099 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bZhMN3t1abKHFM1r"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19431/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19431/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:15.099 [print] {
"resourceType": "Organization",
"id": "19431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:18.204+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:15.099 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:15.698 [print] {
"resourceType": "Organization",
"id": "19431",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:18.204+02:00",
"source": "#bZhMN3t1abKHFM1r",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:16.370 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:17.044 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:19.474+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:19.474+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:17.045 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:17.677 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:17.677 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xvkeXCKRRlyXBJRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19432/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:17.677 [print] {
"resourceType": "Organization",
"id": "19432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:20.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:17.677 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:17.679 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:17.679 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xvkeXCKRRlyXBJRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19432/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:20 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19432/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:20 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:17.679 [print] {
"resourceType": "Organization",
"id": "19432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:20.781+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:17.679 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:19.282 [print] {
"resourceType": "Organization",
"id": "19432",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:20.781+02:00",
"source": "#xvkeXCKRRlyXBJRh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:19.892 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:20.523 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:23.002+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:23.002+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:20.525 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:21.168 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:21.168 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jYpdn08YoaS6Hd94"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19433/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:21.168 [print] {
"resourceType": "Organization",
"id": "19433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:24.252+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:21.168 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:21.169 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:21.169 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jYpdn08YoaS6Hd94"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19433/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19433/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:21.169 [print] {
"resourceType": "Organization",
"id": "19433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:24.252+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:21.169 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:21.797 [print] {
"resourceType": "Organization",
"id": "19433",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:24.252+02:00",
"source": "#jYpdn08YoaS6Hd94",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:22.508 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:23.141 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:25.619+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:25.619+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:23.143 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:23.780 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:23.780 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qvaZA2mKSXv919nE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19434/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:23.780 [print] {
"resourceType": "Organization",
"id": "19434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:26.889+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:23.780 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:23.782 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:23.782 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qvaZA2mKSXv919nE"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19434/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19434/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:23.782 [print] {
"resourceType": "Organization",
"id": "19434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:26.889+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:23.782 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:24.416 [print] {
"resourceType": "Organization",
"id": "19434",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:26.889+02:00",
"source": "#qvaZA2mKSXv919nE",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:25.054 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:25.685 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:28.158+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:28.158+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:25.686 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:26.315 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:26.315 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G8rEBo7ioVvyXl8d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19435/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:26.315 [print] {
"resourceType": "Organization",
"id": "19435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:29.425+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:26.315 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:26.317 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"339"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:26.317 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"G8rEBo7ioVvyXl8d"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19435/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19435/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:28 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:26.317 [print] {
"resourceType": "Organization",
"id": "19435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:29.425+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:26.317 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:27.061 [print] {
"resourceType": "Organization",
"id": "19435",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:29.425+02:00",
"source": "#G8rEBo7ioVvyXl8d",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MEDIMAR INTERNACIONAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA DENIA 78"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:27.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:28.375 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:30.875+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:30.875+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:28.376 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:28.986 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:28.986 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SUMStsp8UUoUxD9a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19436/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:28.986 [print] {
"resourceType": "Organization",
"id": "19436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:32.089+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:28.986 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:28.987 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:28.987 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"SUMStsp8UUoUxD9a"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19436/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:32 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19436/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:31 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:28.987 [print] {
"resourceType": "Organization",
"id": "19436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:32.089+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:28.987 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:29.576 [print] {
"resourceType": "Organization",
"id": "19436",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:32.089+02:00",
"source": "#SUMStsp8UUoUxD9a",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:30.205 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 15ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 15ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:30.858 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:33.302+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:33.302+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:30.859 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:31.521 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:31.522 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fOPv0NqSXHiVTEbK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19437/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:31.522 [print] {
"resourceType": "Organization",
"id": "19437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:34.600+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:31.522 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:31.523 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"344"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:31.523 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fOPv0NqSXHiVTEbK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19437/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:34 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19437/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:31.523 [print] {
"resourceType": "Organization",
"id": "19437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:34.600+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:31.523 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:32.172 [print] {
"resourceType": "Organization",
"id": "19437",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:34.600+02:00",
"source": "#fOPv0NqSXHiVTEbK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CENTRO DE REHABILITACION NEUROLOGICA CASAVERDE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PONENT 15"
],
"city": "Mutxamel",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:32.774 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:33.375 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:35.884+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:35.884+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:33.377 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:34.222 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:34.222 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dfe9IGpvsn3ai3N7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19438/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:34.222 [print] {
"resourceType": "Organization",
"id": "19438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:37.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:34.222 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:34.224 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:34.224 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dfe9IGpvsn3ai3N7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19438/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:37 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19438/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:34.224 [print] {
"resourceType": "Organization",
"id": "19438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:37.328+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:34.224 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:34.841 [print] {
"resourceType": "Organization",
"id": "19438",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:37.328+02:00",
"source": "#dfe9IGpvsn3ai3N7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:35.490 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:36.123 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:38.567+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:38.567+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:36.124 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:36.778 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:36.778 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tXHMcwNPo7XmqcDP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19439/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:36.778 [print] {
"resourceType": "Organization",
"id": "19439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:39.853+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:36.778 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:36.779 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:36.779 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"tXHMcwNPo7XmqcDP"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19439/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19439/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:36.779 [print] {
"resourceType": "Organization",
"id": "19439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:39.853+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:36.779 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:37.395 [print] {
"resourceType": "Organization",
"id": "19439",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:39.853+02:00",
"source": "#tXHMcwNPo7XmqcDP",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:38.017 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:38.625 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:41.128+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:41.128+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:38.626 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:39.245 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:39.245 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rtc5DmRok821kRRH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19440/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:39.245 [print] {
"resourceType": "Organization",
"id": "19440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:42.352+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:39.245 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:39.247 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:39.247 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rtc5DmRok821kRRH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19440/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:42 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19440/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:41 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:39.247 [print] {
"resourceType": "Organization",
"id": "19440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:42.352+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:39.247 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:39.840 [print] {
"resourceType": "Organization",
"id": "19440",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:42.352+02:00",
"source": "#rtc5DmRok821kRRH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:40.463 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:41.086 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:43.561+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:43.561+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:41.087 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:41.712 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:41.712 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nkP1jgvLjYUCVdga"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19441/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:41.712 [print] {
"resourceType": "Organization",
"id": "19441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:44.815+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:41.712 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:41.713 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"382"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:41.713 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"nkP1jgvLjYUCVdga"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19441/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:44 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19441/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:44 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:41.714 [print] {
"resourceType": "Organization",
"id": "19441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:44.815+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:41.714 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:42.379 [print] {
"resourceType": "Organization",
"id": "19441",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:44.815+02:00",
"source": "#nkP1jgvLjYUCVdga",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL MARINA BAIXA DE LA VILA JOIOSA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA ALCALDE EN JAUME BOTELLA MAYOR 7"
],
"city": "Villajoyosa/Vila Joiosa, la",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:43.021 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:43.660 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:46.121+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:46.121+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:43.661 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:44.306 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:44.306 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rdbxgKz7t94Uc9L7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19442/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:44.306 [print] {
"resourceType": "Organization",
"id": "19442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:47.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:44.306 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:44.309 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"356"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:44.309 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"rdbxgKz7t94Uc9L7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19442/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:47 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19442/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:44.309 [print] {
"resourceType": "Organization",
"id": "19442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:47.394+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:44.309 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:44.944 [print] {
"resourceType": "Organization",
"id": "19442",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:47.394+02:00",
"source": "#rdbxgKz7t94Uc9L7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL GENERAL UNIVERSITARIO DR. BALMIS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA PINTOR BAEZA 12"
],
"city": "Alicante/Alacant",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:45.567 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:46.221 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:48.677+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:48.677+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:46.223 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:46.900 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:46.900 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kOhgcvPw1dO33xUu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19443/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:46.901 [print] {
"resourceType": "Organization",
"id": "19443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:49.972+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:46.901 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:46.902 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"345"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:46.902 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"kOhgcvPw1dO33xUu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19443/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:49 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19443/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:46.902 [print] {
"resourceType": "Organization",
"id": "19443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:49.972+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:46.902 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:47.625 [print] {
"resourceType": "Organization",
"id": "19443",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:49.972+02:00",
"source": "#kOhgcvPw1dO33xUu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CATOLICO CASA DE SALUD",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOCTOR MANUEL CANDELA 41"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:48.249 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:48.864 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:51.353+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:51.353+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:48.865 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:49.469 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"328"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:49.469 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qP6w7oh4QdVFfBeu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19444/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:49.469 [print] {
"resourceType": "Organization",
"id": "19444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:52.575+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:49.469 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:49.471 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"328"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:49.471 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qP6w7oh4QdVFfBeu"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19444/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:52 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19444/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:51 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:49.471 [print] {
"resourceType": "Organization",
"id": "19444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:52.575+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:49.471 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:50.108 [print] {
"resourceType": "Organization",
"id": "19444",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:52.575+02:00",
"source": "#qP6w7oh4QdVFfBeu",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "CASA DE REPOSO SAN ONOFRE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA JOAN PESET 31"
],
"city": "Godella",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:50.732 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:51.383 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:53.840+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:53.840+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:51.384 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:51.992 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"348"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:51.992 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P1curciDZwCfv6LH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19445/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:51.992 [print] {
"resourceType": "Organization",
"id": "19445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:55.096+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:51.992 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:51.994 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"348"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:51.994 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"P1curciDZwCfv6LH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19445/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19445/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:51.994 [print] {
"resourceType": "Organization",
"id": "19445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:55.096+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:51.994 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:52.669 [print] {
"resourceType": "Organization",
"id": "19445",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:55.096+02:00",
"source": "#P1curciDZwCfv6LH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE LLIRIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"PARAJE CABEÇO DE L''AGUILA CV-35 S/N"
],
"city": "Llíria",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:53.304 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:53.934 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:56.411+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:56.411+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:53.935 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:54.560 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:54.560 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TiLHIcJQkjgLsDRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19446/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:54.560 [print] {
"resourceType": "Organization",
"id": "19446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:57.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:54.560 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:54.562 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:54.562 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"TiLHIcJQkjgLsDRh"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19446/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:22:57 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19446/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:54.562 [print] {
"resourceType": "Organization",
"id": "19446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:57.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:54.562 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:55.147 [print] {
"resourceType": "Organization",
"id": "19446",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:22:57.669+02:00",
"source": "#TiLHIcJQkjgLsDRh",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:55.810 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 19ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 19ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:56.443 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:22:58.909+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:22:58.909+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:56.445 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:57.097 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"316"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:57.097 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2AQzfa1v57gDGSh7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19447/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:57.097 [print] {
"resourceType": "Organization",
"id": "19447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:00.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:57.097 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:57.098 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"316"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:57.098 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"2AQzfa1v57gDGSh7"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19447/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:00 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19447/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:22:59 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:57.098 [print] {
"resourceType": "Organization",
"id": "19447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:00.185+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:57.098 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:22:57.715 [print] {
"resourceType": "Organization",
"id": "19447",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:00.185+02:00",
"source": "#2AQzfa1v57gDGSh7",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL IMED GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DAIMUS 26"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:22:58.383 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 14ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 14ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:22:59.024 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:01.478+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:01.478+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:22:59.025 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:59.647 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:59.647 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LcebnQwh5c2o2tGY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19448/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:59.647 [print] {
"resourceType": "Organization",
"id": "19448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:02.756+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:59.648 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:22:59.650 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:22:59.650 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"LcebnQwh5c2o2tGY"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19448/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:02 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19448/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:02 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:22:59.650 [print] {
"resourceType": "Organization",
"id": "19448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:02.756+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:22:59.650 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:00.252 [print] {
"resourceType": "Organization",
"id": "19448",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:02.756+02:00",
"source": "#LcebnQwh5c2o2tGY",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:00.909 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 18ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 18ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:06.675 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:04.006+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:04.006+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:06.677 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:07.301 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:07.301 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fL5EpCyabrnxdO26"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19449/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:07.301 [print] {
"resourceType": "Organization",
"id": "19449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:10.405+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:07.301 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:07.302 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:07.302 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"fL5EpCyabrnxdO26"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19449/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:10 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19449/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:07.302 [print] {
"resourceType": "Organization",
"id": "19449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:10.405+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:07.303 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:07.916 [print] {
"resourceType": "Organization",
"id": "19449",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:10.405+02:00",
"source": "#fL5EpCyabrnxdO26",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:08.548 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:09.149 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:11.654+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:11.654+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:09.150 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:09.758 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:09.758 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"reyaNINz1wfoVbs1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19450/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:09.758 [print] {
"resourceType": "Organization",
"id": "19450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:12.868+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:09.758 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:09.759 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:09.759 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"reyaNINz1wfoVbs1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19450/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:12 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19450/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:12 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:09.759 [print] {
"resourceType": "Organization",
"id": "19450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:12.868+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:09.759 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:10.391 [print] {
"resourceType": "Organization",
"id": "19450",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:12.868+02:00",
"source": "#reyaNINz1wfoVbs1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:11.003 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:11.629 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:14.111+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:14.111+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:11.631 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:12.564 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:12.565 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s2PFPqembHTM1sgl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19451/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:12.565 [print] {
"resourceType": "Organization",
"id": "19451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:15.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:12.565 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:12.566 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:12.566 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"s2PFPqembHTM1sgl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19451/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:15 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19451/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:14 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:12.566 [print] {
"resourceType": "Organization",
"id": "19451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:15.669+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:12.566 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:13.186 [print] {
"resourceType": "Organization",
"id": "19451",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:15.669+02:00",
"source": "#s2PFPqembHTM1sgl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:13.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:14.444 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:16.923+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:16.923+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:14.446 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:15.080 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:15.080 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DKVgunMUrjNBOwzV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19452/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:15.080 [print] {
"resourceType": "Organization",
"id": "19452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:18.191+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:15.080 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:15.082 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:15.082 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"DKVgunMUrjNBOwzV"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19452/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19452/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:17 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:15.082 [print] {
"resourceType": "Organization",
"id": "19452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:18.191+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:15.082 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:15.699 [print] {
"resourceType": "Organization",
"id": "19452",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:18.191+02:00",
"source": "#DKVgunMUrjNBOwzV",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:17.355 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:18.006 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:20.463+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:20.463+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:18.007 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:18.629 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:18.629 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qCbEMYclJBu3hljT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19453/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:18.629 [print] {
"resourceType": "Organization",
"id": "19453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:21.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:18.629 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:18.630 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:18.630 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"qCbEMYclJBu3hljT"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19453/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19453/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:18.630 [print] {
"resourceType": "Organization",
"id": "19453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:21.723+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:18.630 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:19.249 [print] {
"resourceType": "Organization",
"id": "19453",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:21.723+02:00",
"source": "#qCbEMYclJBu3hljT",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:19.859 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:20.499 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:22.966+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:22.966+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:20.500 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:21.101 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:21.101 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5bIbcFdsElp6GZ14"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19454/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:21.101 [print] {
"resourceType": "Organization",
"id": "19454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:24.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:21.101 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:21.103 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:21.103 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5bIbcFdsElp6GZ14"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19454/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:24 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19454/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:24 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:21.103 [print] {
"resourceType": "Organization",
"id": "19454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:24.208+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:21.103 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:21.711 [print] {
"resourceType": "Organization",
"id": "19454",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:24.208+02:00",
"source": "#5bIbcFdsElp6GZ14",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:22.608 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:23.212 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:25.719+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:25.719+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:23.214 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:23.827 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:23.827 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KWGOscYwxm2WqCZH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19455/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:23.827 [print] {
"resourceType": "Organization",
"id": "19455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:26.932+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:23.827 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:23.828 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"376"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:23.828 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"KWGOscYwxm2WqCZH"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19455/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19455/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:23.829 [print] {
"resourceType": "Organization",
"id": "19455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:26.932+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:23.829 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:24.451 [print] {
"resourceType": "Organization",
"id": "19455",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:26.932+02:00",
"source": "#KWGOscYwxm2WqCZH",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE CRONICOS DE MISLATA (ANTIGUO HOSPITAL MILITAR DE VALENCIA)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE DOLORES IBARRURI 1"
],
"city": "Mislata",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:25.294 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:25.951 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:28.390+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:28.390+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:25.952 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:26.807 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:26.807 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NGJepDYHtyNVbrHw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19456/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:26.807 [print] {
"resourceType": "Organization",
"id": "19456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:29.689+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:26.807 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:26.809 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"372"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:26.809 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"NGJepDYHtyNVbrHw"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19456/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19456/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:26.809 [print] {
"resourceType": "Organization",
"id": "19456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:29.689+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:26.809 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:27.441 [print] {
"resourceType": "Organization",
"id": "19456",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:29.689+02:00",
"source": "#NGJepDYHtyNVbrHw",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "UNIDAD DE DESINTOXICACION HOSPITALARIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA CV-50 ALZIRA-TAVERNES DE VALLDIGNA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:29.074 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:29.714 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:32.187+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:32.187+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:29.715 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:30.889 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:30.889 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UeLmXoYGrDIY9BcX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19457/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:30.889 [print] {
"resourceType": "Organization",
"id": "19457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:33.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:30.889 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:30.891 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:30.891 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"UeLmXoYGrDIY9BcX"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19457/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19457/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:30.891 [print] {
"resourceType": "Organization",
"id": "19457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:33.783+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:30.891 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:31.486 [print] {
"resourceType": "Organization",
"id": "19457",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:33.783+02:00",
"source": "#UeLmXoYGrDIY9BcX",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DE SAGUNTO",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE RAMON Y CAJAL 46"
],
"city": "Sagunto/Sagunt",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:32.100 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:32.794 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:35.210+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:35.210+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:32.795 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:33.432 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:33.432 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5wDOBv4DZg8kshKW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19458/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:33.432 [print] {
"resourceType": "Organization",
"id": "19458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:36.513+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:33.432 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:33.433 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:33.433 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"5wDOBv4DZg8kshKW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19458/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:36 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19458/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:36 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:33.433 [print] {
"resourceType": "Organization",
"id": "19458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:36.513+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:33.433 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:34.244 [print] {
"resourceType": "Organization",
"id": "19458",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:36.513+02:00",
"source": "#5wDOBv4DZg8kshKW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:34.888 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:35.523 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:37.995+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:37.995+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:35.525 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PROVINCIAL",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA BURJASSOT - TORRES TORRES KM 9"
],
"city": "Bétera",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:36.138 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:36.138 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1sop7PdHNpky56fa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19459/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:36.138 [print] {
"resourceType": "Organization",
"id": "19459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:39.243+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PROVINCIAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA BURJASSOT - TORRES TORRES KM 9"
],
"city": "Bétera",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:36.138 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:36.139 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"354"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:36.140 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"1sop7PdHNpky56fa"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19459/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:39 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19459/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:39 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:36.140 [print] {
"resourceType": "Organization",
"id": "19459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:39.243+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PROVINCIAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA BURJASSOT - TORRES TORRES KM 9"
],
"city": "Bétera",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:36.140 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:37.121 [print] {
"resourceType": "Organization",
"id": "19459",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:39.243+02:00",
"source": "#1sop7PdHNpky56fa",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL PSIQUIATRICO PROVINCIAL",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CARRETERA BURJASSOT - TORRES TORRES KM 9"
],
"city": "Bétera",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:38.731 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:39.375 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:41.843+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:41.843+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:39.376 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:40.021 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:40.021 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pa47z7w59HTyUR33"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19460/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:40.021 [print] {
"resourceType": "Organization",
"id": "19460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:43.116+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:40.021 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:40.022 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:40.023 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"pa47z7w59HTyUR33"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19460/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19460/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:40.023 [print] {
"resourceType": "Organization",
"id": "19460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:43.116+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:40.023 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:40.655 [print] {
"resourceType": "Organization",
"id": "19460",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:43.116+02:00",
"source": "#pa47z7w59HTyUR33",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:42.131 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:42.745 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:45.243+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:45.243+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:42.747 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:43.340 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:43.340 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4URtEfmw1JSRe50i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19461/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:43.340 [print] {
"resourceType": "Organization",
"id": "19461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:46.453+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:43.340 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:43.342 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:43.342 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"4URtEfmw1JSRe50i"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19461/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19461/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:46 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:43.342 [print] {
"resourceType": "Organization",
"id": "19461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:46.453+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:43.342 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:43.958 [print] {
"resourceType": "Organization",
"id": "19461",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:46.453+02:00",
"source": "#4URtEfmw1JSRe50i",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:44.589 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:46.586 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:47.684+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:47.684+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:46.588 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:47.201 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"365"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:47.201 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EqoyCFCt2qtteLmf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19462/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:47.201 [print] {
"resourceType": "Organization",
"id": "19462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:50.310+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:47.201 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:47.202 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"365"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:47.202 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"EqoyCFCt2qtteLmf"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19462/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:50 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19462/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:49 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:47.202 [print] {
"resourceType": "Organization",
"id": "19462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:50.310+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:47.202 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:47.840 [print] {
"resourceType": "Organization",
"id": "19462",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:50.310+02:00",
"source": "#EqoyCFCt2qtteLmf",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL NISA AGUAS VIVAS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"URBANIZACION VALL D''AIGUES VIVES, DE LA S/N"
],
"city": "Carcaixent",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:48.455 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 3ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 3ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:49.326 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:51.569+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:51.569+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:49.327 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:49.957 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:49.957 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MSpWLwq2vU22rhbr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19463/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:49.958 [print] {
"resourceType": "Organization",
"id": "19463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:53.064+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:49.958 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:49.959 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"337"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:49.959 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"MSpWLwq2vU22rhbr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19463/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:53 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19463/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:52 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:49.959 [print] {
"resourceType": "Organization",
"id": "19463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:53.064+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:49.959 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:50.572 [print] {
"resourceType": "Organization",
"id": "19463",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:53.064+02:00",
"source": "#MSpWLwq2vU22rhbr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL VIRGEN DE LOS LIRIOS",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE CARAMANXEL S/N"
],
"city": "Alcoy/Alcoi",
"state": "ALICANTE",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:51.189 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:51.828 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:54.298+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:54.298+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:51.830 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:52.496 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:52.496 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xWGz0kd2gTw3vOFb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19464/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:52.496 [print] {
"resourceType": "Organization",
"id": "19464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:55.606+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:52.496 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:52.498 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:52.498 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"xWGz0kd2gTw3vOFb"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19464/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:55 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19464/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:54 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:52.498 [print] {
"resourceType": "Organization",
"id": "19464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:55.606+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:52.498 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:53.103 [print] {
"resourceType": "Organization",
"id": "19464",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:55.606+02:00",
"source": "#xWGz0kd2gTw3vOFb",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:53.724 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:54.337 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:23:56.835+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:23:56.835+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:54.338 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:54.980 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:54.980 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ii4TT8CLvX4jUzZ5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19465/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:54.980 [print] {
"resourceType": "Organization",
"id": "19465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:58.085+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:54.980 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:54.983 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:54.983 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ii4TT8CLvX4jUzZ5"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19465/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:23:58 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19465/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:23:57 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:54.983 [print] {
"resourceType": "Organization",
"id": "19465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:58.085+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:54.983 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:55.585 [print] {
"resourceType": "Organization",
"id": "19465",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:23:58.085+02:00",
"source": "#ii4TT8CLvX4jUzZ5",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:57.253 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:23:57.859 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:00.360+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:00.360+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:23:57.861 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:58.483 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:58.483 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RXP12nsOIZpzUeZ1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19466/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:58.483 [print] {
"resourceType": "Organization",
"id": "19466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:01.584+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:58.483 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:23:58.484 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:23:58.484 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"RXP12nsOIZpzUeZ1"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19466/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:01 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19466/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:01 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:23:58.484 [print] {
"resourceType": "Organization",
"id": "19466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:01.584+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:23:58.484 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:23:59.139 [print] {
"resourceType": "Organization",
"id": "19466",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:01.584+02:00",
"source": "#RXP12nsOIZpzUeZ1",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:23:59.785 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 9ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 9ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:00.660 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:02.893+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:02.893+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:00.661 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:01.279 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:01.279 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O8nzQG0ODPJzg4tJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19467/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:01.279 [print] {
"resourceType": "Organization",
"id": "19467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:04.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:01.279 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:01.280 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"335"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:01.280 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"O8nzQG0ODPJzg4tJ"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19467/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:04 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19467/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:04 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:01.280 [print] {
"resourceType": "Organization",
"id": "19467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:04.388+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:01.280 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:01.868 [print] {
"resourceType": "Organization",
"id": "19467",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:04.388+02:00",
"source": "#O8nzQG0ODPJzg4tJ",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL LA MAGDALENA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CAMINO COLLET 32"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:02.494 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:03.095 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:05.607+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:05.607+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:03.096 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:03.747 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:03.747 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dI3yCKd4swwlPEeK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19468/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:03.747 [print] {
"resourceType": "Organization",
"id": "19468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:06.850+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:03.747 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:03.749 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"351"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:03.749 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"dI3yCKd4swwlPEeK"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19468/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:06 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19468/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:06 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:03.749 [print] {
"resourceType": "Organization",
"id": "19468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:06.850+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:03.749 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:04.358 [print] {
"resourceType": "Organization",
"id": "19468",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:06.850+02:00",
"source": "#dI3yCKd4swwlPEeK",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL CLINICO UNIVERSITARIO DE VALENCIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA BLASCO IBAÑEZ 17"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:05.251 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 7ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 7ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:05.849 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:08.360+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:08.360+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:05.851 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:06.509 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:06.510 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m1ix5lBcRIqNIZSA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19469/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:06.510 [print] {
"resourceType": "Organization",
"id": "19469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:09.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:06.510 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:06.511 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:06.511 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"m1ix5lBcRIqNIZSA"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19469/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:09 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19469/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:09 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:06.511 [print] {
"resourceType": "Organization",
"id": "19469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:09.603+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:06.511 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:07.141 [print] {
"resourceType": "Organization",
"id": "19469",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:09.603+02:00",
"source": "#m1ix5lBcRIqNIZSA",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:08.135 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:08.751 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:11.234+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:11.234+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:08.752 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:10.355 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:10.355 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"50FYBZvPSFIsfAZ4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19470/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:10.355 [print] {
"resourceType": "Organization",
"id": "19470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:13.468+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:10.355 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:10.356 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"325"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:10.356 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"50FYBZvPSFIsfAZ4"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19470/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:13 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19470/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:13 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:10.356 [print] {
"resourceType": "Organization",
"id": "19470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:13.468+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:10.356 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:10.970 [print] {
"resourceType": "Organization",
"id": "19470",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:13.468+02:00",
"source": "#50FYBZvPSFIsfAZ4",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL DOCTOR MOLINER",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE PORTA COELI S/N"
],
"city": "Serra",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:11.633 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 10ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 10ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:12.495 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:14.742+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:14.742+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:12.497 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:13.099 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:13.099 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0lB2f4AtToTfBc5j"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19471/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:13.099 [print] {
"resourceType": "Organization",
"id": "19471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:16.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:13.099 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:13.101 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:13.101 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"0lB2f4AtToTfBc5j"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19471/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:16 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19471/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:16 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:13.101 [print] {
"resourceType": "Organization",
"id": "19471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:16.211+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:13.101 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:13.718 [print] {
"resourceType": "Organization",
"id": "19471",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:16.211+02:00",
"source": "#0lB2f4AtToTfBc5j",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:14.333 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:14.951 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:17.445+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:17.445+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:14.953 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:15.826 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:15.826 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZKRwOoKL0ugvCE9B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19472/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:15.826 [print] {
"resourceType": "Organization",
"id": "19472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:18.936+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:15.826 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:15.829 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:15.829 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZKRwOoKL0ugvCE9B"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19472/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:18 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19472/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:18 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:15.829 [print] {
"resourceType": "Organization",
"id": "19472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:18.936+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:15.829 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:16.454 [print] {
"resourceType": "Organization",
"id": "19472",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:18.936+02:00",
"source": "#ZKRwOoKL0ugvCE9B",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:17.067 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:17.687 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:20.182+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:20.182+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:17.689 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:18.289 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:18.289 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bC2r1DUb0dZNEF0F"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19473/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:18.289 [print] {
"resourceType": "Organization",
"id": "19473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:21.390+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:18.289 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:18.291 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:18.291 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"bC2r1DUb0dZNEF0F"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19473/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:21 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19473/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:21 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:18.291 [print] {
"resourceType": "Organization",
"id": "19473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:21.390+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:18.291 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:18.880 [print] {
"resourceType": "Organization",
"id": "19473",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:21.390+02:00",
"source": "#bC2r1DUb0dZNEF0F",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:19.472 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:20.120 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:22.585+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:22.585+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:20.122 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:20.734 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"387"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:20.734 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FKmpwuiXAmO2PMk8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19474/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:20.734 [print] {
"resourceType": "Organization",
"id": "19474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:23.841+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:20.734 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:20.736 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"387"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:20.736 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"FKmpwuiXAmO2PMk8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19474/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:23 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19474/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:23 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:20.736 [print] {
"resourceType": "Organization",
"id": "19474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:23.841+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:20.736 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:21.356 [print] {
"resourceType": "Organization",
"id": "19474",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:23.841+02:00",
"source": "#FKmpwuiXAmO2PMk8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "INSTITUTO DE TRAUMATOLOGIA DE UNION DE MUTUAS (MATEPSS Nº 267)",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA VIRGEN DE LIDON 67"
],
"city": "Castelló de la Plana",
"state": "CASTELLÓN",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:21.980 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:22.581 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:25.083+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:25.083+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:22.582 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:23.170 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:23.170 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7jQF6McInG9JDHr8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19475/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:23.170 [print] {
"resourceType": "Organization",
"id": "19475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:26.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:23.170 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:23.172 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:23.172 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7jQF6McInG9JDHr8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19475/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:26 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19475/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:26 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:23.172 [print] {
"resourceType": "Organization",
"id": "19475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:26.282+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:23.172 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:23.769 [print] {
"resourceType": "Organization",
"id": "19475",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:26.282+02:00",
"source": "#7jQF6McInG9JDHr8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:24.378 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:25.002 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:27.493+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:27.493+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:25.004 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:26.616 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:26.616 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"o6fM2uMVQzzcQQeO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19476/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:26.616 [print] {
"resourceType": "Organization",
"id": "19476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:29.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:26.616 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:26.616 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:26.616 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"o6fM2uMVQzzcQQeO"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19476/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:29 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19476/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:29 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:26.618 [print] {
"resourceType": "Organization",
"id": "19476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:29.728+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:26.618 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:27.221 [print] {
"resourceType": "Organization",
"id": "19476",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:29.728+02:00",
"source": "#o6fM2uMVQzzcQQeO",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:27.830 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:28.462 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:30.945+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:30.945+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:28.463 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:30.082 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:30.082 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"noMGnRxabdo4vEs2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19477/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:30.082 [print] {
"resourceType": "Organization",
"id": "19477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:33.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:30.082 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:30.083 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"331"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:30.083 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"noMGnRxabdo4vEs2"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19477/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:33 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19477/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:33 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:30.083 [print] {
"resourceType": "Organization",
"id": "19477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:33.183+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:30.083 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:30.690 [print] {
"resourceType": "Organization",
"id": "19477",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:33.183+02:00",
"source": "#noMGnRxabdo4vEs2",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL ARNAU DE VILANOVA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"CALLE SANT CLEMENT 12"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:31.325 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 6ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 6ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:31.974 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:34.431+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:34.431+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:31.975 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:32.610 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:32.610 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"slEMqS3QdLU32V5Q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19478/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:32.610 [print] {
"resourceType": "Organization",
"id": "19478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:35.713+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:32.610 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:32.611 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:32.611 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"slEMqS3QdLU32V5Q"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19478/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:35 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19478/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:35 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:32.611 [print] {
"resourceType": "Organization",
"id": "19478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:35.713+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:32.611 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:33.210 [print] {
"resourceType": "Organization",
"id": "19478",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:35.713+02:00",
"source": "#slEMqS3QdLU32V5Q",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:33.816 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:34.422 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:36.931+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:36.931+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:34.424 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:35.029 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:35.029 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7mPTz3zHUWhNGKfW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19479/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:35.029 [print] {
"resourceType": "Organization",
"id": "19479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:38.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:35.029 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:35.031 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"343"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:35.031 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"7mPTz3zHUWhNGKfW"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19479/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:38 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19479/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:38 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:35.031 [print] {
"resourceType": "Organization",
"id": "19479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:38.131+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:35.031 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:35.668 [print] {
"resourceType": "Organization",
"id": "19479",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:38.131+02:00",
"source": "#7mPTz3zHUWhNGKfW",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL FRANCESC DE BORJA DE GANDIA",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA MEDICINA (DE LA) 6"
],
"city": "Gandia",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:36.423 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 5ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 5ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:37.439 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:39.481+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:39.481+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:37.441 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:38.044 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:38.044 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v3jxgT5RvU10Dazl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19480/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:38.044 [print] {
"resourceType": "Organization",
"id": "19480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:41.154+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:38.044 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:38.045 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:38.045 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"v3jxgT5RvU10Dazl"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19480/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:41 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19480/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:40 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:38.045 [print] {
"resourceType": "Organization",
"id": "19480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:41.154+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:38.045 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:38.655 [print] {
"resourceType": "Organization",
"id": "19480",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:41.154+02:00",
"source": "#v3jxgT5RvU10Dazl",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:39.268 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:39.877 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:42.384+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:42.384+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:39.878 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:40.539 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:40.540 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZPu0q5kJzSRbGxfr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19481/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:40.540 [print] {
"resourceType": "Organization",
"id": "19481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:43.647+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:40.540 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:40.541 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:40.541 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"ZPu0q5kJzSRbGxfr"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19481/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:43 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19481/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:43 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:40.541 [print] {
"resourceType": "Organization",
"id": "19481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:43.647+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:40.541 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:41.147 [print] {
"resourceType": "Organization",
"id": "19481",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:43.647+02:00",
"source": "#ZPu0q5kJzSRbGxfr",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:41.968 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:42.631 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:44.886+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:44.886+02:00"
}
]
}
@Delete
@Organization
@Post
@Get
@Only-api
Scenario Outline: The hospital sends a FHIR Organization resource.
Given
path '/Organization'
And
print resource
10:24:42.633 [print] {
"resourceType": "Organization",
"meta": {
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"telecom": [
],
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
method POST
Then
status 201
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:43.239 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:43.239 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jDtSQP7enSwHzGs8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19482/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:43.239 [print] {
"resourceType": "Organization",
"id": "19482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:46.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:43.239 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
And
call read('../../utils/features/PRINT-DATA.feature') { REQUEST_HEADERS: '#(karate.prevRequest.headers)', RESPONSE_HEADERS: #(responseHeaders), COOKIES: #(responseCookies), RESPONSE: #(response)}
karate/src/features/api/../../utils/features/PRINT-DATA.feature
> *
print REQUEST_HEADERS
10:24:43.240 [print] {
"Accept": [
"application/json"
],
"Authorization": "********",
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"362"
],
"Host": [
"psp-sp-fhir.prep.sanit.cineca.it"
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.13 (Java/17.0.2)"
],
"Accept-Encoding": [
"gzip,deflate"
]
}
> *
print RESPONSE_HEADERS
10:24:43.240 [print] {
"X-Powered-By": [
"HAPI FHIR 5.6.0 REST Server (FHIR Server; FHIR 4.0.1/R4)"
],
"ETag": [
"W/\"1\""
],
"X-Request-ID": [
"jDtSQP7enSwHzGs8"
],
"Content-Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19482/_history/1"
],
"Last-Modified": [
"Fri, 16 Sep 2022 08:24:46 GMT"
],
"Location": [
"https://psp-sp-fhir.prep.sanit.cineca.it:443/fhir/Organization/19482/_history/1"
],
"Content-Type": [
"application/fhir+json;charset=UTF-8"
],
"Transfer-Encoding": [
"chunked"
],
"Date": [
"Fri, 16 Sep 2022 08:24:45 GMT"
],
"Set-Cookie": [
"07cff3b053bba18fe69209fb3b88c92f=2e3c21d0feaae8da2bb7ca7166b2c09a; Domain=psp-sp-fhir.prep.sanit.cineca.it; Secure"
]
}
> *
print RESPONSE
10:24:43.240 [print] {
"resourceType": "Organization",
"id": "19482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:46.353+02:00",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
> *
print COOKIES
10:24:43.240 [print] {
"07cff3b053bba18fe69209fb3b88c92f": {
"path": null,
"domain": "psp-sp-fhir.prep.sanit.cineca.it",
"name": "07cff3b053bba18fe69209fb3b88c92f",
"max-age": -9223372036854775808,
"httponly": false,
"secure": true,
"value": "2e3c21d0feaae8da2bb7ca7166b2c09a",
"wrap": false
}
}
When
print 'They search on the server for the already created FHIR resource'
And
method GET
Then
status 200
And
print response
10:24:43.836 [print] {
"resourceType": "Organization",
"id": "19482",
"meta": {
"versionId": "1",
"lastUpdated": "2022-09-16T10:24:46.353+02:00",
"source": "#jDtSQP7enSwHzGs8",
"profile": [
"http://hl7.eu/fhir/ig/pcsp/StructureDefinition/Organization-center-eu-pcsp"
]
},
"language": "es-ES",
"name": "HOSPITAL UNIVERSITARIO Y POLITECNICO LA FE",
"address": [
{
"use": "work",
"type": "both",
"line": [
"AVENIDA FERNANDO ABRIL MARTORELL 106"
],
"city": "València",
"state": "VALENCIA",
"country": "ES"
}
]
}
When
print 'They try to delete the Organization resource from the server'
And
method DELETE
Then
status 200
And
print response
10:24:44.445 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 4ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "Successfully deleted 1 resource(s) in 4ms"
}
]
}
When
print 'They check if the Organization resource is on the server'
And
method GET
Then
status 410
And
print response
10:24:45.332 [print] {
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2022-09-16T10:24:47.559+02:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [
{
"severity": "error",
"code": "processing",
"diagnostics": "Resource was deleted at 2022-09-16T10:24:47.559+02:00"
}
]
}